Where is the best place to validate data which will be used by model. For example, think about registration form. We have some data which come from registration form. So where is the best place to verify this data.We should check every data by if statements or special validator class, and this means lots of coding, so i want to learn where is the place to do this.
In Controller? or Model?
Both? Because some of the data should be validated by other models?
If you are not sure about exact answer, please try to find possible advantages and disadvantages of both ways.