I’m new to php, MVC and Zend Framework. I need to redirect to a controller/action via a hyperlink. I used this, as I have used it in a form to redirect to a controller. <a href="mycontroller/myaction"> But this time, it didn’t work.
my controller is a very basic controller, where I only tried to dispaly the view conneced to the controller.
Here it is:
<?php
class NewUserController extends Zend_Controller_Action {
public function init()
{
/* Initialize action controller here */
}
public function newuserAction()
{
$this->view->newuser;
}
}
?>
I searched for answers and every answer was similar to what I have done.
please help me to sort this out.
Thanks in advance
Charu
First change your controller name NewUser to Newuser and try to pass url like this :
And in controller :
Hope it will work for you.