Example #1
0
 public function __call($name, $args)
 {
     if (substr($name, 0, 6) == 'render') {
         $componentName = lcfirst(substr($name, 6));
         $component = $this->getComponent($componentName, FALSE);
         if ($component) {
             return call_user_func_array(array($component, 'render'), $args);
         }
     }
     return parent::__call($name, $args);
 }