Thursday, December 22, 2011

CodeIgniter: link_tag improved

This is a custom html_helper to improve use of link_tag. Also I've added js_tag to make the same result.

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:





// 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’);

Download link_tag improved

No comments: