Skip to content

Instantly share code, notes, and snippets.

@konnoyosuke
Created December 6, 2011 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konnoyosuke/1437768 to your computer and use it in GitHub Desktop.
Save konnoyosuke/1437768 to your computer and use it in GitHub Desktop.
<?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