コード例 #1
0
 /**
  * Handle unknown class methods
  *
  * @param string $name unknown method-name
  * @param array  $args argument array
  *
  * @return mixed
  * @throws SmartyException
  */
 public function __call($name, $args)
 {
     // method of Smarty object?
     if (method_exists($this->smarty, $name)) {
         return call_user_func_array([$this->smarty, $name], $args);
     }
     // parent
     return parent::__call($name, $args);
 }