Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]How should I use my Model(s) ?
#2

[eluser]julien.1486[/eluser]
Self-reply :

Finally I was in a wrong way.

I make a Model for each table in my database, except for the one including a foreign key (well, I just have two tables for the moment Big Grin).
I've added private members to my class and a array named 'myFeatures'.
When I retrieves the datas from the database I fill 'myFeature' with the result of a query build by using $this->db->get_where(....).
This is described in this topic (thanks to the authors and to the helpers) :
http://ellislab.com/forums/viewthread/88156/

I look for this all the day !


Messages In This Thread
[SOLVED]How should I use my Model(s) ? - by El Forum - 08-20-2008, 06:25 AM
[SOLVED]How should I use my Model(s) ? - by El Forum - 08-20-2008, 06:08 PM
[SOLVED]How should I use my Model(s) ? - by El Forum - 08-20-2008, 07:29 PM
[SOLVED]How should I use my Model(s) ? - by El Forum - 08-21-2008, 02:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB