Welcome Guest, Not a member yet? Register   Sign In
Where do you store dropdown option data?
#4

[eluser]Damien K.[/eluser]
Hard-coded (ie, an array) for short list in the model. Quick and efficient. Refactor in the future if necessary.

I would pull data from the database for states. If performance is a concern, then I would cache the model->get_states() function.


Messages In This Thread
Where do you store dropdown option data? - by El Forum - 09-18-2009, 03:50 PM
Where do you store dropdown option data? - by El Forum - 09-18-2009, 06:09 PM
Where do you store dropdown option data? - by El Forum - 09-18-2009, 06:49 PM
Where do you store dropdown option data? - by El Forum - 09-18-2009, 07:03 PM
Where do you store dropdown option data? - by El Forum - 09-18-2009, 07:26 PM
Where do you store dropdown option data? - by El Forum - 09-18-2009, 07:34 PM
Where do you store dropdown option data? - by El Forum - 09-18-2009, 09:05 PM
Where do you store dropdown option data? - by El Forum - 09-18-2009, 10:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB