예제 #1
0
 public function __call($method, $args)
 {
     $input_method_name = preg_replace('#(?i)_control$#', '', $method);
     if (method_exists($this, $input_method_name)) {
         return call_user_func_array(array($this, $input_method_name), $args);
     }
     return parent::__call($method, $args);
 }