Example #1
0
 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();
     }
 }
Example #2
0
 protected function recordNotFound($return_url = '', $error_message = '')
 {
     $view = new ViewNotFoundHtml($this->cms, $this->request->language);
     $view->renderNotFound($return_url, $error_message);
 }