/** * Initializes the routed Controller and executes specified action * * @return \PHPixie\Response A Response object with the body and headers set */ public function execute() { $class = $this->param('namespace', $this->pixie->app_namespace) . 'Controller\\' . ucfirst($this->param('controller')); $controller = $this->pixie->controller($class); $controller->request = $this; $controller->run($this->param('action')); return $controller->response; }