Created
December 6, 2011 10:53
-
-
Save konnoyosuke/1437768 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// in app/Lib/Error/AppExceptionRenderer.php | |
App::uses('ExceptionRenderer', 'Error'); | |
class AppExceptionRenderer extends ExceptionRenderer { | |
protected function _getController($exception) { | |
$controller = parent::_getController($exception); | |
$controller->layout = 'error'; | |
return $controller; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment