[eluser]Nicholas Hanks[/eluser]
I must say this community is very active tnanks to Loops and a&w. Finally I figured out this issue somewhat but I am still struggling to get group functionality where I can put certain js and css in group. I first tried class sent to me by a&w but it had bugs. So, I gave second shot to AssetLibPro and this time I solved some part.
This is what I did!!!
Here what you have to change first in csstidy folder change name class.csstidy.php to csstidy.php (Weird huh!!!)
Secondly give write and read access to compressed folder and read access to plugin folder (especially CSSTIDY FOLDER, this might not be necessary but in my case it was)
This is how I setup my directory structure
DemoApp
css
js
compressed
css
js
system
libraries
Assetlibpro.php
........
application
config
assetlibpro.php
Now you have to change Assetlibpro.php little bit (Library)
in __construct() function add
$this->CI->config->load('assetlibpro'); //thanks to Michael aka a&w
in output function whereever it says
base_url() replace that with $this->CI->config->item('base_url')
in private function _load_css_config() change
$csstidy = BASEPATH.$this->CI->config->item('alp_csstidy_basepath')."class.csstidy.php";
to
$csstidy = BASEPATH.$this->CI->config->item('alp_csstidy_basepath')."csstidy.php";
Now in config file
$config['alp_asset_dir'] = '/';//TRAILING SLASH!
$config['alp_cache_dir_css'] = '/compressed/css/';//TRAILING SLASH!
$config['alp_cache_dir_js'] = '/compressed/js/';//TRAILING SLASH!
But you can change this configuration however you like it I suppose
Finally this is how you can add CSS and JS
$this->load->library('Assetlibpro');
$this->assetlibpro->add_css('css/test.css');
$this->assetlibpro->add_css('js/test.js');
-------------------------------------------------------------------
Now my question and mission is how can I add CSS and JS in groups and how can I call those groups in views. Instruction mentions something about group but it is not clear enough for me. Any suggestion