I am trying to use $this->_forward()
to go to another action in the same controller but it is not working. My code is...
class IndexController extends Zend_Controller_Action
{
public function indexAction()
{
$this->view->bodyCopy = "<p>Please select a file to upload.</p>";
$form = new forms_UploadForm();
if ($this->_request->isPost()) {
$formData = $this->_request->getPost();
if ($form->isValid($formData)) {
$this->_forward('displayFileContent');
} else {
$form->populate($formData);
}
} else {
$this->view->form = $form;
}
}
public function displayFileContentAction()
{
die("In displayFileContentAction");
}
}
but I am not getting my die message. I get an error saying 'Page not found'
.
Any help would be greatly appreciated as I have been having real trouble with this.