Welcome Guest, Not a member yet? Register   Sign In
models and libraries
#1

[eluser]Unknown[/eluser]
hi, im still a newbie so pardon my question, i was wondering whats the clear difference between models and libraries? is it best practice if i load a model in another model? or is this a sign that i should put this functionality into the library?
#2

[eluser]WanWizard[/eluser]
Technically, there is no difference.

From an MVC point of view, libraries contain your reusable methods, models the methods that deal with I/O. There's nothing against using models in other models. If you use an ORM for example, a model is mapped to a table, so you will always use models in models...




Theme © iAndrew 2016 - Forum software by © MyBB