Skip to content
World Wide Web Server edited this page Jul 4, 2012 · 48 revisions

[b] So I was checking out some of the assets extensions people have made and though they were useful and served their purpose, I had some additions I wanted to make and so I went off to make my own asset system. Here is the scoop: [/b]

[b] So I wanted to be able to use the CodeIgnitor system in my javascript and css files and I wanted a simple way to incorporate this as well as load images, js, css, swf, flv, etc... So my system is as follows. [/b]

[b] The files used are: [/b]

[b] application>controllers>asset_controller.php application>config>assets.php application>libraries>Assets.php [/b]

[h4] and a simple adjustment to our application>config>routes.php file: [/h4]

[code]$route["asset/:any"] = "loader/load_files";[/code]

Clone this wiki locally