Welcome Guest, Not a member yet? Register   Sign In
Model or Controller - Where to Validate
#1

[eluser]louis w[/eluser]
Previously I was skipping the Model layer when making small sites. Preparing for a larger application and would like to utilize the MVC pattern a bit more.

I am wondering in what layer do you validate the data? Do you do it before you pass your data to the Model (in the Controller) or before you do your database operation (in the Model)?

Wondering if the Model contains anything besides very bare bone database interaction.


Messages In This Thread
Model or Controller - Where to Validate - by El Forum - 04-13-2008, 04:21 PM
Model or Controller - Where to Validate - by El Forum - 04-13-2008, 04:28 PM
Model or Controller - Where to Validate - by El Forum - 04-13-2008, 04:32 PM
Model or Controller - Where to Validate - by El Forum - 04-13-2008, 04:50 PM
Model or Controller - Where to Validate - by El Forum - 04-13-2008, 06:04 PM
Model or Controller - Where to Validate - by El Forum - 04-13-2008, 06:42 PM
Model or Controller - Where to Validate - by El Forum - 04-13-2008, 11:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB