Welcome Guest, Not a member yet? Register   Sign In
Design Question
#2

[eluser]gtech[/eluser]
I put all my database code into the model, infact each database table has its own model, if a function needs to make a call on two tables I make a decision on which model to put it in.

for example a users table might have a model with the functions create_user, remove_user, edit_user, get_user_results (makes a call to the user and results table), get_user_groups.

If the datamodel changes then I can make changes to the model without having to make major changes to the controller code


Messages In This Thread
Design Question - by El Forum - 05-20-2008, 04:48 PM
Design Question - by El Forum - 05-20-2008, 05:11 PM
Design Question - by El Forum - 05-20-2008, 05:35 PM
Design Question - by El Forum - 05-20-2008, 05:51 PM
Design Question - by El Forum - 05-20-2008, 08:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB