Welcome Guest, Not a member yet? Register   Sign In
HOWTO: rewrite requests for images, css and js to different folders for each application?
#5

[eluser]picardo[/eluser]
Hmm. I'm not sure I get it. How would you write a controller that can control the requests made to javascript files? I'm new to CodeIgniter, but I assumed controllers are able to load templates located in views folder. Your suggestion is to write a controller named...how would you even name it? And its functionality would be to send the requests to js, css and image files to the assets folder, which is outside of the web root? I'm kind of with you, but there are still some missing pieces in my mind. How would the controller capture requests for assets, for one thing?

Though the .htaccess seems easier (if I can get it to work, argh!), this is pretty intriguing.


Messages In This Thread
HOWTO: rewrite requests for images, css and js to different folders for each application? - by El Forum - 06-28-2009, 11:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB