![]() |
Difference between Library classes and Model Classes? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Difference between Library classes and Model Classes? (/showthread.php?tid=35737) |
Difference between Library classes and Model Classes? - El Forum - 11-09-2010 [eluser]Unknown[/eluser] Hi, can someone please advise what the specific differences are between library classes and model classes? Is it basically that model classes refer only to DB models? Thx for any input! Difference between Library classes and Model Classes? - El Forum - 11-09-2010 [eluser]tonanbarbarian[/eluser] model classes extend the CI Model class and can therefore access parts of the controller and inherit some of theproperties of the controller library classes do not generally extend anything so are standalone classes and cannot natively access the controller or any other part of CI. You can however code them to be able to grab an instance of the controller if needed. |