3 Votes Vote

View rendering as blank in Zend Framework action

Posted by topdog 284 days ago Questions| action view zend All
<?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 is my controller

this is my 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 I tried to run the view I am getting result blank/signup why this happens please rectify that error, and tell me the reason for that error

Originally asked by: Arun on Stack Overflow

Discuss Bury


Who Voted for this Question