Exemple #1
0
 public function __call($method, $args)
 {
     if (method_exists($this, $method)) {
         return call_user_func_array($callback, $args);
     }
     $callback = array(&$this->_smarty, $method);
     if (is_callable($callback)) {
         return call_user_func_array($callback, $args);
     } else {
         return parent::__call($method, $args);
     }
 }