예제 #1
0
파일: Action.php 프로젝트: nhp/shopware-4
 /**
  * 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);
 }