Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 640 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 640 Bytes

Assets Newer Helper to CodeIgniter

#About Generates the URL with parameters for the browser version does not consider the cache. Useful for Javascript and CSS. Applicable to local files.

#Installation Put the application/helpers/assets_helper.php to your application/helpers folder.

  • Require: PHP 5.3

#Benefits Helper automatically cares about browser caching so it appends last modified time for local files to the end of the filename, e.g. my_file.js?tm=1314151490

#Usage Helper currently offers assets_newer function.

##assets_newer

<?php echo assets_newer($localUrl); ?>