ZF-1876: Zend_Controller_Action::run() (as Page Controller) does not transform action request to dispatchable name
Description
Assuming:
Zend_Loader::loadClass('ErrorController', APPLICATION_PATH . 'user/modules/default/controllers/');
$request = new Zend_Controller_Request_Http();
$request->setActionName('setup-error')
->setParam('exception', $exception);
$ec = new ErrorController($request, new Zend_Controller_Response_Http());
echo $ec->run();
ErrorController::run() will attempt to dispatch setup-errorController, not SetupErrorController.
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2007-11-16T12:48:31.000+0000
PageControllers can be done with ZF, but it's not the primary purpose for Zend_Controller_Action, so I'm only scheduling it tentaively for 1.1.0. This can likely be achieved by adding inflection support to run() (and using the same inflection support in the dispatcher).
Posted by Ralph Schindler (ralph) on 2007-11-16T13:28:06.000+0000
I propose we actually now create a Zend_Controller_Page for dispatching page controller dispatched action controllers (Say that 10x fast)
This is the current way of dipatching a "Page Controlled Action"
Posted by Wil Sinclair (wil) on 2008-04-18T13:11:59.000+0000
This doesn't appear to have been fixed in 1.5.0. Please update if this is not correct.
Posted by Ralph Schindler (ralph) on 2008-04-22T10:36:46.000+0000
Updating project management info.