mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
07e43bb0f8
Conflicts: cake/libs/view/scaffolds/edit.ctp cake/libs/view/scaffolds/form.ctp cake/tests/test_app/plugins/test_plugin/views/tests/scaffold.edit.ctp cake/tests/test_app/plugins/test_plugin/views/tests/scaffold.form.ctp cake/tests/test_app/views/posts/scaffold.edit.ctp cake/tests/test_app/views/posts/scaffold.form.ctp lib/Cake/Error/ErrorHandler.php lib/Cake/Model/Behavior/TranslateBehavior.php lib/Cake/Model/Datasource/CakeSession.php lib/Cake/Routing/Router.php lib/Cake/TestSuite/TestManager.php lib/Cake/View/scaffolds/edit.ctp lib/Cake/tests/cases/console/shells/bake.test.php lib/Cake/tests/cases/libs/cake_log.test.php lib/Cake/tests/cases/libs/cake_request.test.php lib/Cake/tests/cases/libs/view/helpers/number.test.php lib/Cake/tests/test_app/plugins/test_plugin/views/tests/scaffold.edit.ctp lib/Cake/tests/test_app/views/posts/scaffold.edit.ctp
48 lines
No EOL
899 B
PHP
48 lines
No EOL
899 B
PHP
<?php
|
|
/**
|
|
* Error Handling Controller
|
|
*
|
|
* Controller used by ErrorHandler to render error views.
|
|
*
|
|
* @package cake
|
|
* @subpackage cake.cake.libs
|
|
*/
|
|
class CakeErrorController extends AppController {
|
|
public $name = 'CakeError';
|
|
|
|
/**
|
|
* Uses Property
|
|
*
|
|
* @var array
|
|
*/
|
|
public $uses = array();
|
|
|
|
/**
|
|
* __construct
|
|
*
|
|
* @access public
|
|
* @return void
|
|
*/
|
|
function __construct() {
|
|
parent::__construct();
|
|
$this->_set(Router::getPaths());
|
|
$this->request = Router::getRequest(false);
|
|
$this->constructClasses();
|
|
$this->Components->trigger('initialize', array(&$this));
|
|
$this->_set(array('cacheAction' => false, 'viewPath' => 'errors'));
|
|
}
|
|
|
|
/**
|
|
* Escapes the viewVars.
|
|
*
|
|
* @return void
|
|
*/
|
|
function beforeRender() {
|
|
parent::beforeRender();
|
|
foreach ($this->viewVars as $key => $value) {
|
|
if (!is_object($value)){
|
|
$this->viewVars[$key] = h($value);
|
|
}
|
|
}
|
|
}
|
|
} |