/** * Magic caller method * * @param string $name * @param array $value * @return mixed */ public function __call($name, $value = null) { if ('Action' == substr($name, -6)) { $action = substr($name, 0, strlen($name) - 6); throw new Enlight_Controller_Exception('Action "' . $this->controller_name . '_' . $name . '" not found failure', Enlight_Controller_Exception::ActionNotFound); } return parent::__call($name, $value); }