Example #1
0
 /**
  * Load a 404 page with the Error message.
  */
 public function index($error)
 {
     $data['title'] = '404';
     $data['error'] = $error;
     View::addHeader("HTTP/1.0 404 Not Found");
     View::renderTemplate('header', $data);
     View::render('Error/404', $data);
     View::renderTemplate('footer', $data);
 }