3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
6 * Licensed under The MIT License
7 * For full copyright and license information, please see the LICENSE.txt
8 * Redistributions of files must retain the above copyright notice.
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
13 * @license http://www.opensource.org/licenses/mit-license.php MIT License
15 namespace App\Controller;
20 * Error Handling Controller
22 * Controller used by ExceptionRenderer to render error responses.
24 class ErrorController extends AppController
27 * Initialization hook method.
31 public function initialize()
33 $this->loadComponent('RequestHandler');
37 * beforeFilter callback.
39 * @param \Cake\Event\Event $event Event.
40 * @return \Cake\Network\Response|null|void
42 public function beforeFilter(Event $event)
47 * beforeRender callback.
49 * @param \Cake\Event\Event $event Event.
50 * @return \Cake\Network\Response|null|void
52 public function beforeRender(Event $event)
54 parent::beforeRender($event);
56 $this->viewBuilder()->setTemplatePath('Error');
60 * afterFilter callback.
62 * @param \Cake\Event\Event $event Event.
63 * @return \Cake\Network\Response|null|void
65 public function afterFilter(Event $event)