mirror of
https://github.com/brmlab/brmbiolab_sklad.git
synced 2025-06-08 21:24:00 +02:00
Initial commit
This commit is contained in:
commit
3b93da31de
1004 changed files with 265840 additions and 0 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();
|
||||
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