mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
Without this fix we wouldn't be able to display the exception if MenuModel was the cause since it's used in the Controller, which ExceptionsPage inherits from. svn path=/web/trunk/; revision=40948
26 lines
478 B
PHP
26 lines
478 B
PHP
<?php
|
|
require_once('Controller.php');
|
|
|
|
class ExceptionsPage extends Controller {
|
|
private $_template;
|
|
|
|
/* Constructor. */
|
|
public function __construct() {
|
|
parent::__construct();
|
|
$this->_template = 'exceptions.tpl';
|
|
}
|
|
|
|
/* Display the index page. */
|
|
public function index($exception) {
|
|
return $this->renderPage(
|
|
array(
|
|
'title' => 'Exception',
|
|
'content_title' => 'Error processing request',
|
|
'exception' => $exception,
|
|
),
|
|
'exception.tpl'
|
|
);
|
|
}
|
|
}
|
|
?>
|