AssetLibPro - An advanced CI Asset Library - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: AssetLibPro - An advanced CI Asset Library (/showthread.php?tid=8175) |
AssetLibPro - An advanced CI Asset Library - El Forum - 03-05-2009 [eluser]ammonkc[/eluser] [quote author="phazei" date="1236327782"]Uh, did you read the last post? That's exactly what it's about.[/quote] Sorry, what I meant was not to autoload EVERYthing, But to set a few assets to autoload and still load others as they are needed. For example: layout.css is used in every page, so I auto load it. but forms.css and lightbox.css are only used on a single page so I load them as needed. AssetLibPro - An advanced CI Asset Library - El Forum - 03-06-2009 [eluser]ammonkc[/eluser] Ok, this is kind of what I was thinking about. In the config file - assetlibpro.php Code: // add an array with the assets to autoload In the Library file - Assetlibpro.php Code: // add these class variables AssetLibPro - An advanced CI Asset Library - El Forum - 06-11-2009 [eluser]Andreia M.[/eluser] I must be doing something wrong here. The page loads OK, but no CSS or JS works - it generates the output, it caches the file, all is apparently working, but it's the same as if the page had no CSS at all. I even checked the compressed file - it looks OK. I turned GZIP compression off, as my host does not have it on. Could that be it? Apparently it *is* generating the files as it should, but Safari and Firefox don't seem to recognize it. Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); Code: In the controller's constructor: Code: <?php Code: View >> Source code of the view: AssetLibPro - An advanced CI Asset Library - El Forum - 07-23-2009 [eluser]Skinnpenal[/eluser] Does this library have any support that enables variables in css? AssetLibPro - An advanced CI Asset Library - El Forum - 07-23-2009 [eluser]tonydewan[/eluser] @Andreia M. If your still having trouble, you might check out my library called Carabiner. It provides similar functionality, but without the overhead of PHP based GZIP. The link to the library forum post is in my signature. @Skinnpenal I don't know of a CI library that offers that functionality. Carabiner certainly doesn't, though that would be an interesting feature to implement. Good luck on your search. AssetLibPro - An advanced CI Asset Library - El Forum - 05-30-2010 [eluser]kurucu[/eluser] I published an application to a live server today and none of my stylesheets and javascript worked! The problem was simple, in the end, and was that my live server has SuPHP installed on it. I wrapped the file-modification functions in the asset library with chmod 775 and chmod 755 for the 'compressed' directory. I did note that instead of the usual Apache complaint, CI also handled the error as a 404 (if I navigated to the CSS file) which would be great for the end-user but left me baffled! This is here for anyone banging their heads on their desks, as an idea of what might cause the problem. I will suggest some ideas/code to the project author to help fix the problem. |