mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-16 03:48:24 +00:00
07d9a75fcb
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.
27 lines
735 B
PHP
27 lines
735 B
PHP
<?php
|
|
/**
|
|
*
|
|
* PHP 5
|
|
*
|
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
|
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
*
|
|
* Licensed under The MIT License
|
|
* Redistributions of files must retain the above copyright notice.
|
|
*
|
|
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
* @link http://cakephp.org CakePHP(tm) Project
|
|
* @package Cake.Test.test_app.View.Helper
|
|
* @since CakePHP(tm) v 1.3
|
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
|
*/
|
|
|
|
App::uses('Helper', 'View');
|
|
|
|
class BananaHelper extends Helper {
|
|
|
|
public function peel() {
|
|
return '<b>peeled</b>';
|
|
}
|
|
|
|
}
|