class My_Controller_Action extends Zend_Controller_Action {
public function __call($method, $params) {
// default handle for noRoute“s
}
}
class FoobarController extends My_Controller_Action {}
-- Yann Nave <[EMAIL PROTECTED]> wrote
(on Wednesday, 10 January 2007, 11:00 PM +0100):
Is there a way to set a noRouteAction for all controlers ?
I'm using a routes.ini config file like this :
Set a default, catch-all route, or... subclass Zend_Controller_Action
and override the __call() method to do what you want, and have your
controllers inherit from this class.