Welcome Guest, Not a member yet? Register   Sign In
Poll: Entity models?
You do not have permission to vote in this poll.
yes
43.18%
19 43.18%
no
18.18%
8 18.18%
maybe
38.64%
17 38.64%
Total 44 vote(s) 100%
* You voted for this item. [Show Results]

Entity models?
#11

I vote No. But bow to greater experience in the matter.

I use the models to represent areas of concern, not tables. I tried on one site to have one model per table but it just didn't work for me. Where do you put queries that get from more than one table, or queries that update several tables?

Even the way I do it now sometimes leaves me scratching my head about which model to put the function in. I think the role of models is very dependent on the nature of the site.

One of the things I truly love about CI is that I can work in any way that suits me with it. I would not want to lose that even if it means that I can work NOT following best practice if I choose to. (I admit also to sometimes putting queries in controllers for quick solutions and small sites).

Paul.
Reply


Messages In This Thread
Entity models? - by jlp - 04-11-2015, 08:41 AM
RE: Entity models? - by albert.freeman - 04-13-2015, 03:40 PM
RE: Entity models? - by RWCH - 04-14-2015, 05:17 AM
RE: Entity models? - by gadelat - 04-14-2015, 05:52 AM
RE: Entity models? - by dmyers - 04-14-2015, 05:56 AM
RE: Entity models? - by sv3tli0 - 04-14-2015, 06:23 AM
RE: Entity models? - by kilishan - 04-16-2015, 09:48 PM
RE: Entity models? - by jlp - 04-16-2015, 11:31 PM
RE: Entity models? - by RWCH - 06-12-2015, 07:36 AM
RE: Entity models? - by mwhitney - 06-15-2015, 08:41 AM
RE: Entity models? - by mwhitney - 04-17-2015, 08:53 AM
RE: Entity models? - by Razican - 04-19-2015, 02:59 PM
RE: Entity models? - by PaulD - 04-20-2015, 07:27 AM
RE: Entity models? - by kilishan - 06-09-2015, 12:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB