A free, self-hostable aggregator…
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
600 B

<?php
class ErrorController extends ActionController {
public function indexAction () {
switch (Request::param ('code')) {
case 403:
$this->view->code = 'Error 403 - Forbidden';
break;
case 404:
$this->view->code = 'Error 404 - Not found';
break;
case 500:
$this->view->code = 'Error 500 - Internal Server Error';
break;
case 503:
$this->view->code = 'Error 503 - Service Unavailable';
break;
default:
$this->view->code = 'Error 404 - Not found';
}
$this->view->logs = Request::param ('logs');
View::prependTitle ($this->view->code . ' - ');
}
}