Jakub Podhorský wrote:
But theres bug in version 0.7 as I see where isDispatchable() always returns
true(need to upgrade to some snapshot :) )
Oh, yeah I probably should have mentioned that I've been tracking Zend's
HEAD for a while. I work on this project off and on so I'm not sure
whether or not it even worked with 0.7.0.
Here is the function that I had prior to late January ( the start of
some post-0.7.0 MVC changes ). Maybe it'll help you ( see above
disclaimer of not being sure codebase worked with 070 )
public function preDispatch(Zend_Controller_Request_Abstract $request) {
$disp = Zend_Controller_Front::getInstance()->getDispatcher();
if ( !$disp->isDispatchable($request) ) {
$request->setParam('module', null);
$request->setControllerName('error');
$request->setActionName('error404');
}
}