php - View rendering as blank in Zend Framework action -
<?php class signupcontroller extends zend_controller_action { function indexaction() { if ($this->_request->ispost()) { echo "your email address is: " . $this->_request->getpost('email'); } $this->render("signup"); } }
this controller
this view
<html> <body> <form action="/signup" method="post"> email: <input name="email" type="text" /> <input name="btnsubmit" value="click me" type="submit" /> </form> </body> </html>
when tried run view getting result blank/signup why happens please rectify error, , tell me reason error
if using signup view replace render code :-
$this->_helper->viewrenderer('signup');
Comments
Post a Comment