FYI, i this solution seems to be working well:

<?php
class DSF_Controller_Action extends Zend_Controller_Action 
{

    public function __call($method, $args)
    {
        $module = $this->_request->getModuleName();
        $controller = $this->_request->getControllerName();
        $action = $this->_request->getActionName();

        if ('Action' == substr($method, -6) && $module != 'core') {
            // If the action method was not found, try the core controller
            return $this->_forward($action, $controller, 'core');
        }

        // all other methods throw an exception
        throw new Exception('Invalid method "' . $method . '" called');
    }
    
    public function addDefaultMethod()
    {
        $controller = $this->_request->getControllerName();
        $action = $this->_request->getActionName();
        return $this->_forward($action, $controller, 'core');
    }
    
}



-- 
View this message in context: 
http://www.nabble.com/best-practice-for-overriding-controllers-tp14230636s16154p14256732.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to