How can i forward to other action inside the same controller avoiding repeat all dispatch proccess ?
Example:
If i point to User Controller the default action is indexAction() inside this funciton i use _forwad(‘list’) … but all dispatch proccess are repeated.. and i dont that
Whats is the right way ?
Usually, you will install routes to redirect your users to the proper (default) action, instead of the index action (read how to redirect from a given route using Zend_Router). But you can do everything manually if you really want to (however this is called “writing hacker code to achieve something dirty”) directly from the controller.
Change your “view script” to be rendered, then call your action method….
If you tend on using this “trick” often, perhaps you may write a base controller that you extend in your application, which can simply have a method like :
Then call the method from your action…
NOTE : this is not the official way to do it, but it is a solution.