CodeIgniter Forums

Full Version: link_tag improved
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

I've modified the link_tag helper for reload css files when it changes.
Also I add js_tag helper to make the same.

For this I've created 'MY_html_helper' custom helper, so you can use easily.
Only copy file into 'helpers' in your project.

The functions are:



// change css/main.css -> css/main.css?{mtime} -> css/main.css?12342343 automaticaly
echo link_tag('css/main.css');
echo js_tag('js/system.js');