Welcome Guest, Not a member yet? Register   Sign In
Database lookup tables and models
#2

[eluser]RonPerrella[/eluser]
I use a single model to look up both static lists and lists stored in the DB. That way, my app is oblivious of the source and I can still optimize for speed. Of course, there is DB caching as part of CI but this was simple enough.

I pass in the type of data I want back in a list, and I make sure that array is suitable for use in form_dropdown().


Messages In This Thread
Database lookup tables and models - by El Forum - 08-19-2008, 04:19 PM
Database lookup tables and models - by El Forum - 08-19-2008, 06:41 PM
Database lookup tables and models - by El Forum - 08-19-2008, 06:57 PM
Database lookup tables and models - by El Forum - 08-20-2008, 08:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB