CodeIgniter Forums
Model - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Model (/showthread.php?tid=37845)



Model - El Forum - 01-22-2011

[eluser]RedIgniter[/eluser]
Hello guys, I am making a site using codeigniter where I am going to have a lot of inserting, updating and selecting data.. What is the best way of doing this in models or in some other way possible?


Model - El Forum - 01-22-2011

[eluser]mi6crazyheart[/eluser]
Of-course, for all those dirty DB works MODEL is right place...


Model - El Forum - 01-22-2011

[eluser]RedIgniter[/eluser]
How would I make a such model?


Model - El Forum - 01-22-2011

[eluser]mi6crazyheart[/eluser]
For making model go through this : http://ellislab.com/codeigniter/user-guide/general/models.html

For making respective SQL query use CI's active record class: http://ellislab.com/codeigniter/user-guide/database/active_record.html