Welcome Guest, Not a member yet? Register   Sign In
Models in CI are confusing to me
#4

[eluser]wiredesignz[/eluser]
Actually WanWizard is incorrect. Models are not data objects, models should contain business rules that control your application as well as providing access to your database or any other data source that you might need. Models should be used to encapsulate your data objects or data access. The confusion stems from his lack of understanding of the MVC design pattern and that he has inherited a poorly designed ORM implementation. The models he is referring to are actually data objects based on what should be a library class. He just calls them models for lack of understanding.

EDIT:
If there is a dispute about this I would ask WanWizard to prove why his data objects should be classed as models? I can prove they are not models because they do not contain business rules governing how their data is represented.


Messages In This Thread
Models in CI are confusing to me - by El Forum - 02-09-2011, 03:10 PM
Models in CI are confusing to me - by El Forum - 02-09-2011, 03:36 PM
Models in CI are confusing to me - by El Forum - 02-09-2011, 04:59 PM
Models in CI are confusing to me - by El Forum - 02-10-2011, 04:08 AM
Models in CI are confusing to me - by El Forum - 02-10-2011, 06:17 AM
Models in CI are confusing to me - by El Forum - 02-10-2011, 02:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB