'groups' => array( 'css' => array( 'jquery-ui' => array( 'files' => array( 'jquery-ui.css', ), 'enabled' => true, ), ), ),
echo Casset::render_css();
Notice! ErrorException [ Notice ]: Undefined index: jquery-ui.css PKGPATH/casset/classes/casset.php @ line 194: 193: $parts = explode('::', $file, 2); 194: $path = static::$asset_paths[$parts[0]]; 195: $file = $parts[1];
Casset::css('jquery-ui.css'); echo Casset::render_css();
'paths' => array( 'core' => 'assets/', 'uploadify' => 'assets/uploadify/' ),
'groups' => array( 'js' => array( 'uploadify' => array( 'files' => array( 'uploadify::file1.js', 'uploadify::file2.js', ), 'enabled' => true, ) , ), 'css' => array( 'uploadify' => array(...), ), ),
'groups' => array( 'js' => array( 'uploadify' => array( 'files' => array( 'uploadify::*.js', ), 'enabled' => true, ) , ), 'css' => array( 'uploadify' => array(...), ), ),
Antony Male wrote on Wednesday 15th of June 2011:My bad, that was half a documentation omission since adding in namespacing, and half forgetting that people might want to specify un-namespaced files in groups in the config file. I've updated the docs and tweaked things so that your example now works (without modification). Thanks, and apologies,
Antony
All Casset does is minify and combine the files, and write them to disk. When a user accesses the files, Casset has nothing to do with it any more. They're just ordinary files served by your web server (which looks like Apache based on those configuration lines). Try searching Google for "Apache enable gzip javascript" and see if you can find any useful informationam having one issue though that may be server related. We turned on compression using AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-httpd-php But for some reason the cache still is not being sent compressed.
Antony Male wrote on Wednesday 8th of June 2011:Thanks for the encouragement! I doubt they'll want to change anything in Fuel with a release on the way, but I might mention it once they get back onto feature-adding and Casset gets a bit more real-world experience.
Antony Male wrote on Wednesday 8th of June 2011:Aha I see. I hadn't noticed they did that. Regardless, I think I'll let it mature a little first.
It looks like you're new here. If you want to get involved, click one of these buttons!