• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.