MVC: Does the Model or Controller validate user input

Depemique

New Member
What part in the MVC does user input get validated? For example, user registration system, the user inputs data in the View, where does the user's input get cleaned and validated for the correct input, eg. correct email, applying php cleaning functions..would this happen in the controller or the model? and which would decide what errors are returnedthanks
 
Back
Top