Skip to content

Commit

Permalink
Enable the Dispatcher filters for plugin assets, and CacheHelper for …
Browse files Browse the repository at this point in the history
…CakePHP 2.2
  • Loading branch information
ceeram committed Jun 7, 2012
1 parent 1a19dbf commit 08e91dd
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Config/core.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
else{
Configure::write('debug', 0);
}

Configure::write('log', true);

/**
Expand All @@ -32,11 +32,11 @@
if(Configure::read('debug') == 0){
Configure::write('Cache.check', true);
}

App::uses('AppError', 'Lib');
App::uses('InfinitasException', 'Lib/Error');
Configure::write(
'Error',
'Error',
array(
'handler' => 'AppError::handleError',
'level' => E_ALL,
Expand All @@ -46,10 +46,16 @@
);

Configure::write(
'Exception',
'Exception',
array(
'handler' => 'AppError::handleException',
'renderer' => 'InfinitasExceptionRenderer',
'log' => true,
)
);

Configure::write('Dispatcher.filters', array(
'AssetDispatcher',
'CacheDispatcher'
));

0 comments on commit 08e91dd

Please sign in to comment.