/** * @param string $method_name * @param array $args * * @return mixed */ function __call($method_name, $args = array()) { /* * If method was the_*() method, parent __call() will fall through and return false. */ if (!($result = parent::__call($method_name, $args))) { /* * Delegate call to view and return it's result to caller. */ $result = $this->view->{$method_name}($args); } return $result; }