Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter JS
#1

[eluser]theprodigy[/eluser]
I have been using a javascript menu system for a little while and was curious if there was a way to have CI output the js via an MVC setup rather than always having to include the javascript files. Is it possible to have a script src point to a controller rather than an actual javascript file? I've tried to set it up, but it doesn't seem to work properly.

My end goal is to database the menu item list, and have a model that pulls the list from a db, then use a controller to organize it into the proper setup for the view to output the js needed. Is this possible, and if so, how would I go about doing this?

Thanks a bunch in advance for your help.


Messages In This Thread
CodeIgniter JS - by El Forum - 11-17-2008, 10:59 PM
CodeIgniter JS - by El Forum - 11-17-2008, 11:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB