Welcome Guest, Not a member yet? Register   Sign In
Where should I put this class?
#11

[eluser]Dam1an[/eluser]
I agree with bretticus, and think a Model is definatly the way to go with this.
By storing a;ll the store info in a database table, you can return a colelction (of any size) of store objects, so you can then do

foreach($stores as $store) {
echo $store->name;
etc...
}

you can also easily add/edit/delete stores using the same model, and if you really want, you can have a library as a wrapper with any non model functionality




Theme © iAndrew 2016 - Forum software by © MyBB