Adding asset filters for CSS and JS, set using 'Asset.filter.css' and 'Asset.filter.js', fixes #2233

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6287 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-12-31 05:19:00 +00:00
parent 18110fe97a
commit 368b085c94
7 changed files with 36 additions and 6 deletions

View file

@ -636,7 +636,10 @@ class Dispatcher extends Object {
*/
function cached($url) {
if (strpos($url, 'ccss/') === 0) {
include WWW_ROOT . DS . 'css.php';
include WWW_ROOT . DS . Configure::read('Asset.filter.css');
exit();
} elseif (strpos($url, 'cjs/') === 0) {
include WWW_ROOT . DS . Configure::read('Asset.filter.js');
exit();
}