- Place AssetLoad.php file in the folder application/libraries
- Create folder called assets in root. (Same level as application and system folders)
- Within assets folder, following structure should be there.
- Within assets.ini file you can include following coding
; Asset loader manifest file
[defaults]
css[] = "http://127.0.0.5/CI/BATransfer/assets/css/site.css"
css[] = "http://127.0.0.5/CI/BATransfer/assets/css/main.css"
js[] = "http://127.0.0.5/CI/BATransfer/assets/js/html5shiv.min.js"
Within controller action you can use this library following way.
$this->load->library('AssetLoad');
$this->assetload->queue();
No comments:
Post a Comment