Skip to content

CodeIgniter helper for building HTML links to assets (scripts, stylesheets and images)

Notifications You must be signed in to change notification settings

jonaswebdev/codeigniter-assets-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

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

About

CodeIgniter helper for building HTML links to assets (scripts, stylesheets and images)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages