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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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