ZF-81: Documentation for next action could be improved (TRAC#94)

Issue Type: Task Created: 2006-06-20T23:24:03.000+0000 Last Updated: 2007-07-05T14:43:08.000+0000 Status: Resolved Fix version(s): - 0.6.0 (16/Dec/06)

Reporter: Zend Framework (zend_framework) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Controller

Related issues: Attachments:



The documentation (section 2.3) states that: {quote} "dispatch() is where the work gets done. This method must execute the action of the controller. It must return either a dispatch token or a boolean, FALSE, to indicate that there is no more work to do." {quote} It isn't made clear in the user documentation how to get dispatch() to return a new token so as to continue with the next action in the dispatch loop. Returning a new dispatch token from indexController, for instance, doesn't work. You must call the _forward() method at the end of the current action, e.g.

<pre class="highlight">
class IndexController extends Zend_Controller_Action {

    public function indexAction() {
        echo 'Hello from IndexController';
                $this->_forward('index', 'nextaction', array('param1', 'param2'));

    public function nextactionAction() {
        $params = $this->_getAllParams();

Adding something along these lines to the documentation would certainly have helped me.


Posted by Matthew Weier O'Phinney (matthew) on 2006-11-03T11:18:56.000+0000

New paragraph added to Zend_Controller_Overview.xml in revision 1447.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.