assets /
- css /
- image /
- js /
- modules /
- modulename /
- css /
- image /
- js /
- modulename2 /
- css /
- image /
- js /
$ this-> load-> helper ('asset');
// Load the CSS file
css_asset ('filename.css');
// Load (generates code) image filename.jpg from module
// modulename (subfolder in the assets folder).
// In addition, it takes the third parameter of the array of attributes of the tag IMG
image_asset ('filename.jpg', 'modulename', array ('alt' => 'Image name', 'width' => 50));
// Generate link (not code) to javascript file in modulename module
js_asset_url ('filename.js', 'modulename');
Source: https://habr.com/ru/post/27417/
All Articles