1 | <?php |
||
8 | class ErrorController extends Controller |
||
9 | { |
||
10 | |||
11 | 1 | public function errorAction() |
|
12 | { |
||
13 | /** @var Exception $e */ |
||
14 | 1 | $e = $this->getParam('error'); |
|
15 | 1 | $this->view->message = $e->getMessage(); |
|
16 | 1 | $this->view->code = $e->getCode(); |
|
17 | 1 | $this->view->trace = $e->getTrace(); |
|
18 | 1 | } |
|
19 | |||
20 | public function notFoundAction(){} |
||
21 | |||
22 | public function notAuthorisedAction(){} |
||
23 | } |