Hi guys, I am trying to use AssetCompress but I am with problems.

I followed these steps:

- Downloaded plugin and droped into app/Plugin/AssetCompress
- Set CakePlugin::load('AssetCompress'); inside app/Config/bootstrap.php
- Created 'cache_css' and 'cache_js' inside app/webroot/
- Copied asset_compress.ini file to app/Config/ -> follow current content 
here: http://pastebin.com/1YxYfZQ9
- Added public $helpers = array ('AssetCompress.AssetCompress'); inside 
AppController.php
- Added echo $this->AssetCompress->script('js_libs'); and echo 
$this->AssetCompress->css('css_all'); inside layout file

I am trying compress files (that are inside webroot/js and webroot/css) 
that I have specified inside 'asset_compress.ini' but when I load page I 
get this error:

CakePHP: the rapid development php framework
Cannot create a script tag for a build that does not exist.

Error: An Internal Error Has Occurred.
Stack Trace

    APP\View\Layouts\Default.ctp line 38 → 
AssetCompressHelper->script(string)
    CORE\Cake\View\View.php line 920 → include(string)
    CORE\Cake\View\View.php line 883 → View->_evaluate(string, array)
    CORE\Cake\View\View.php line 539 → View->_render(string)
    CORE\Cake\View\View.php line 483 → View->renderLayout(string, string)
    CORE\Cake\Controller\Controller.php line 957 → View->render(null, null)
    CORE\Cake\Routing\Dispatcher.php line 193 → Controller->render()
    CORE\Cake\Routing\Dispatcher.php line 161 → 
Dispatcher->_invoke(HomeController, CakeRequest, CakeResponse)
    APP\webroot\index.php line 96 → Dispatcher->dispatch(CakeRequest, 
CakeResponse)

Note: my debug level is 2.

AssetCompress does not generate build file on page request? Why I am 
getting this message? I have to do anything more?

Thank you in advance.

-- 
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to