Welcome Guest, Not a member yet? Register   Sign In
best practice: model or controller?
#1

[eluser]satterle[/eluser]
I am taking a mySQL date (2008-07-02) and breaking it apart to populate form elements, one for year, one for month and one for day using strtok function. Question: is it best practice to split the date in the model function or in the controller function, or is this an either/or thing? Currently I'm splitting the date in the controller.


Messages In This Thread
best practice: model or controller? - by El Forum - 07-02-2008, 08:59 AM
best practice: model or controller? - by El Forum - 07-02-2008, 09:11 AM
best practice: model or controller? - by El Forum - 07-02-2008, 09:52 AM
best practice: model or controller? - by El Forum - 07-02-2008, 10:15 AM
best practice: model or controller? - by El Forum - 07-02-2008, 10:22 AM
best practice: model or controller? - by El Forum - 07-02-2008, 10:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB