Hi, Im stugling with a strange behavier her.
When I go to
http://localhost:8080/no/part2/html/index.php I get the index.phtml rendered as i should. If I go to another adress (
http://localhost:8080/no/part2/appli...Controller.php) during a post from a form, I only get a emty page, not Transfere.phtml rendered.
Any Ide about this error? Driving me crazy here ...
My .htaccess fil:
Code:
RewriteEngine on
RewriteBase /
RewriteRule !\.(js|ico|txt|gif|
I would also like to know if it is normal that any code from Zend comes AFTHER the </html> tag in the source, even if it was intended in the <body> tag when echoed out in the .phtml file..
From IE source:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<meta http-equiv="Content-Type" type="text/html; charset=UTF-8">
<script type="text/javascript">
function button_pressed(){
alert("knapp trykket");
test = getElementById("tekstboks");
alert(test);
}
</script>
<title>Test av rammeverk nummer 2</title>
</head>
<body>
<h1 style="background: blue; color: white;">Her skal du leke litt med de ulike kontrollene og se om responstiden er bra nok. Husk at layout ikke har noe med denne testen 㟧j�.
</h1>
<p>
</p>
<div id = "done" name = "done"></div>
<p>
</p>
<p>
</p>
</br>
</body>
</html></br></br><form id="stdkontroller1" enctype="application/x-www-form-urlencoded" action="http://localhost:8080/no/part2/application/default/controllers/TransfereController.php" method="post"><dl class="zend_form">
<dt><label for="tekstboks" class="optional">Skriv inn en tekst i tekstboksen:</label></dt>
<dd>
<input type="text" name="tekstboks" id="tekstboks" value=""></dd>
<dt></dt><dd>
<input type="submit" name="Sendtillistboks" id="Sendtillistboks" value="Send til listboks"></dd>
<dt></dt>
<dd>
<select name="listboks" id="listboks" label="Listeboks: " size="5">
<option value="0" label="Valg 1">Valg 1</option>
<option value="1" label="Valg 2">Valg 2</option>
</select></dd></dl></form><form id="stdkontroller2" enctype="application/x-www-form-urlencoded" action="http://localhost:8080/no/part2/application/default/controllers/TransfereController.php" method="post"><dl class="zend_form">
<dt></dt>
<dd>
<label style="white-space: nowrap;"><input type="checkbox" name="groups[]" value="1">Valg 1</label><br /><label style="white-space: nowrap;"><input type="checkbox" name="groups[]" value="2">Valg 2</label><br /><label style="white-space: nowrap;"><input type="checkbox" name="groups[]" value="3">Valg 3</label></dd></dl></form><form id="stdkontroller3" enctype="application/x-www-form-urlencoded" action="http://localhost:8080/no/part2/application/default/controllers/TransfereController.php" method="post"><dl class="zend_form">
<dt></dt>
<dd>
<label style="white-space: nowrap;"><input type="radio" name="valg" value="0">Valg1</label><br /><label style="white-space: nowrap;"><input type="radio" name="valg" value="1">Valg 1</label></dd></dl></form>
My index.phtml content:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<meta http-equiv="Content-Type" type="text/html; charset=UTF-8">
<script type="text/javascript">
function button_pressed(){
alert("knapp trykket");
test = getElementById("tekstboks");
alert(test);
}
</script>
<title>Test av rammeverk nummer 2</title>
</head>
<body>
<h1 style="background: blue; color: white;">Her skal du leke litt med de ulike kontrollene og se om responstiden er bra nok. Husk at layout ikke har noe med denne testen å gjøre ..
</h1>
<p>
<?php $this->form1; ?>
</p>
<div id = "done" name = "done"></div>
<p>
<?php $this->form2; ?>
</p>
<p>
<?php $this->form3; ?>
</p>
</br>
<?php $this->viewText; ?>
</body>
</html>