Purpose of the model - less then in CI3? |
Sorry if this is a stupid question, but do we generally do less stuff in the model now compared to CI3?
For example would I do the sanitazion of "Post data" in the controller now and not in the model? PHP Code: $data['fieldname'] = $this->request->getVar('fieldname', FILTER_SANITIZE_STRING);
Why do you need to do the sanitization of "Post data" in the model?
|
Welcome Guest, Not a member yet? Register Sign In |