Welcome Guest, Not a member yet? Register   Sign In
link_tag improved

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');

Messages In This Thread
link_tag improved - by El Forum - 12-21-2011, 06:54 AM

Theme © iAndrew 2016 - Forum software by © MyBB