( ) , (, Zend_Router). , ( " - " ) .
" script", ....
public function indexAction() {
$this->_helper->viewRenderer('foo');
$this->fooAction();
}
"", , , , , :
abstract class My_Controller_Action extends Zend_Controller_Action {
protected function _doAction($action) {
$method = $action . 'Action';
$this->_helper->viewRenderer($action);
return $this->$method();
}
}
...
class Default_Controller extends My_Controller_Action
public function indexAction() {
if ($someCondition) {
return $this->_doAction('foo');
}
}
public function fooAction() {
}
}
: , .