Meet CodeIgniter MY_Model |
Actually there is no "traditional" MVC. Everyone has its own version of MVC. But most of the people say that the processing of data (including form validation) should be done by the model. The controllers only do the decisional part of an application. But in the end, it's up to us what we do in the controllers and inside the models. For example, I choose to leave the validation rules inside the model, and do the validation inside the controller.
Website: http://avenir.ro
|
Welcome Guest, Not a member yet? Register Sign In |