Welcome Guest, Not a member yet? Register   Sign In
Model Development
#1

[eluser]UnforgiveNX[/eluser]
Hi all,

I'm trying to develop a model with CodeIgniter. I have three mysql tables; Users, Products and Comments. As you may imagine, users and products are stand-alone tables but comments table is related to users and product (who is commented and commented to which product).

I'm wondering what is the best practice to develop models.

Should I create
one model for each table, or
one model for each standalone table ?

I have seen some projects. For instance Dx_auth plugin uses seperate models for each database table (login_attempts, permissions, roles, ..). What if there would be only one "user" module?

What is the best practice?

Thank you


Messages In This Thread
Model Development - by El Forum - 09-03-2009, 03:29 AM
Model Development - by El Forum - 09-03-2009, 04:37 AM
Model Development - by El Forum - 09-03-2009, 08:42 AM
Model Development - by El Forum - 09-03-2009, 08:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB