• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
link_tag improved

#1
[eluser]porquero[/eluser]
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:

link_tag()
js_tag();

Example:

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.