Welcome Guest, Not a member yet? Register   Sign In
Difference between Library classes and Model Classes?
#1

[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!
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB