controller = new $modname(); } } /** * @brief * * @param string $method * @return boolean|mixed */ function call($method) { if(! $this->controller) return false; if(method_exists($this->controller, $method)) return $this->controller->$method(); return false; } }