Skip to content

Commit

Permalink
Moving CakeErrorController to its own file.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 28, 2010
1 parent a2186c4 commit 5de88c0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions cake/libs/controller/cake_error_controller.php
@@ -0,0 +1,34 @@
<?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 = $this->params = Router::getRequest();
$this->constructClasses();
$this->Components->trigger('initialize', array(&$this));
$this->_set(array('cacheAction' => false, 'viewPath' => 'errors'));
}
}

0 comments on commit 5de88c0

Please sign in to comment.