public function route() { if ($this->container->offsetExists('controller')) { $controller = $this->container['controller']; $controller->executeMethod(); unset($controller); //Destroy all the objects } else { $view = new View\ViewNotFoundHtml($this->container['cms'], $this->container['request']->language); $view->renderNotFound(); } }
protected function recordNotFound($return_url = '', $error_message = '') { $view = new ViewNotFoundHtml($this->cms, $this->request->language); $view->renderNotFound($return_url, $error_message); }