4
0

errorController.php 605 B

1234567891011121314151617181920212223242526
  1. <?php
  2. class ErrorController extends ActionController {
  3. public function indexAction () {
  4. View::prependTitle (Translate::t ('error') . ' - ');
  5. switch (Request::param ('code')) {
  6. case 403:
  7. $this->view->code = 'Error 403 - Forbidden';
  8. break;
  9. case 404:
  10. $this->view->code = 'Error 404 - Not found';
  11. break;
  12. case 500:
  13. $this->view->code = 'Error 500 - Internal Server Error';
  14. break;
  15. case 503:
  16. $this->view->code = 'Error 503 - Service Unavailable';
  17. break;
  18. default:
  19. $this->view->code = 'Error 404 - Not found';
  20. }
  21. $this->view->logs = Request::param ('logs');
  22. }
  23. }