Welcome Guest, Not a member yet? Register   Sign In
Best practce for calling functions between models
#1

[eluser]mact1079[/eluser]
Since I'm pretty new to MVC frameworks...

I have a Users_model function addUser which inserts a user record into the User table based on the info they inputted in the registration form.

I also have a Invites_model functions createInvite and addInvitewhich creates and inserts an invitation record into the Invitations table for the same user.

I want all this to happen when the user creates an account.

Is it ok for me to call the Invites_model function from the Users_model to complete both table inserts?


Messages In This Thread
Best practce for calling functions between models - by El Forum - 08-21-2012, 05:34 PM
Best practce for calling functions between models - by El Forum - 08-21-2012, 06:49 PM
Best practce for calling functions between models - by El Forum - 08-21-2012, 07:04 PM
Best practce for calling functions between models - by El Forum - 08-21-2012, 07:21 PM
Best practce for calling functions between models - by El Forum - 08-22-2012, 11:57 AM
Best practce for calling functions between models - by El Forum - 08-23-2012, 12:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB