Asset Helper for CodeIgniter

/ Published in: PHP
Save to your folder(s)

The below code helps you move your site assets (images, css, javascript) to a public folder inside the application directory of CodeIgniter.

One thing you'll need to do is define ASSETPATH to be the path to the location of your public items. For myself, I set this to system/application//public/.

See some of my other snippets to get some background on the subdomain part of that path.


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.