Welcome Guest, Not a member yet? Register   Sign In
How develop Model and validation
#1

Hi
In this my project(Shop),there are 4 model (User,Shop,Order,Category)
There is no problem
I want to know only,is it correct validate function argument in model or i have to validate it in controller?
Example
I have User model with Login function
This function have to arguments(username,password)
Do i have to check username and password in Model or in Controller validate and then use model?
Actually i want to know what is standard programming for use model and validation and split this from their
Reply


Messages In This Thread
How develop Model and validation - by omid_student - 01-12-2020, 09:30 AM
RE: How develop Model and validation - by asrofie - 01-13-2020, 08:33 AM
RE: How develop Model and validation - by Mad Ox - 01-14-2020, 05:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB