Ok, this has probably been asked before but i cant find a definative answer. Where in the MVC pattern should validation of input happen?
I would like to say that things like empty fields and basic general validation should happen in the controller and that rules as lengths and valid characters of for example usernames / passwords etc should happen at the model layer.
However, this means spreading this burdon around the application which surely cant be good either?
Sorry if this question is naieve but I am relatively new to this type of programming and want to get things correct from the start.