mirror of
https://github.com/brmlab/brmsklad.git
synced 2025-08-04 07:03:41 +02:00
Backup of current cakephp version
This commit is contained in:
parent
b8f82da6f8
commit
5a580df460
925 changed files with 238041 additions and 1 deletions
21
lib/Cake/Test/test_app/Error/TestAppsExceptionRenderer.php
Normal file
21
lib/Cake/Test/test_app/Error/TestAppsExceptionRenderer.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
class TestAppsExceptionRenderer extends ExceptionRenderer {
|
||||
|
||||
protected function _getController($exception) {
|
||||
App::uses('TestAppsErrorController', 'Controller');
|
||||
if (!$request = Router::getRequest(true)) {
|
||||
$request = new CakeRequest();
|
||||
}
|
||||
$response = new CakeResponse(array('charset' => Configure::read('App.encoding')));
|
||||
try {
|
||||
$controller = new TestAppsErrorController($request, $response);
|
||||
$controller->layout = 'banana';
|
||||
} catch (Exception $e) {
|
||||
$controller = new Controller($request, $response);
|
||||
$controller->viewPath = 'Errors';
|
||||
}
|
||||
return $controller;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue