Welcome Guest, Not a member yet? Register   Sign In
Model and Form
#7

(11-20-2014, 05:59 PM)RobertSF Wrote:
(11-20-2014, 04:11 PM)slax0r Wrote: I tend to keep all of data operations in the models. Read the input with the controller, and pass it into the model. Then let model do with the data what it needs to do. This also includes preparing an array for database insert.
Kind of new to MVC here, so trying to understand. If you read the input with the controller and then pass it to the model, don't you have to put it in an array? And if you validate the input in the controller, and then put it in an array, isn't the data already prepared for database insert?

I thnk by data operations he meant database operations.
Reply


Messages In This Thread
Model and Form - by aurelien - 11-20-2014, 03:24 AM
RE: Model and Form - by Rufnex - 11-20-2014, 04:10 AM
RE: Model and Form - by ivantcholakov - 11-20-2014, 05:00 AM
RE: Model and Form - by bclinton - 11-20-2014, 07:59 AM
RE: Model and Form - by slax0r - 11-20-2014, 04:11 PM
RE: Model and Form - by RobertSF - 11-20-2014, 05:59 PM
RE: Model and Form - by bclinton - 11-20-2014, 07:26 PM
RE: Model and Form - by slax0r - 11-21-2014, 01:43 AM
RE: Model and Form - by bclinton - 12-12-2014, 04:58 PM
RE: Model and Form - by mwhitney - 12-12-2014, 03:21 PM
RE: Model and Form - by bclinton - 12-12-2014, 04:55 PM
RE: Model and Form - by mwhitney - 12-15-2014, 10:02 AM
RE: Model and Form - by jaynarayan - 12-18-2015, 10:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB