mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-28 14:56:23 +00:00

Since many exceptions do not have its own 'template' file, customized APP/Controller/CakeErrorController with its own list of helpers could be ignored. This happens becase ExceptionRenderer is forced to to use _outputMessageSafe when a template is missing. This causes Controller::$helpers to be reset with default values.
14 lines
195 B
PHP
14 lines
195 B
PHP
<?php
|
|
|
|
App::uses('CakeErrorController', 'Controller');
|
|
|
|
class TestAppsErrorController extends CakeErrorController {
|
|
|
|
public $helpers = array(
|
|
'Html',
|
|
'Session',
|
|
'Form',
|
|
'Banana',
|
|
);
|
|
|
|
}
|