Welcome Guest, Not a member yet? Register   Sign In
Form validation not in controller but rather in Model
#4

[eluser]mi6crazyheart[/eluser]
Ok, if this is the matter of business logic then i agree with u. I also believe it's, MODEL is the right place to deal with business logic.

And about u'r current problem , i want to give u suggestion...
Do what ever form validation in u'r controller side and do the comparing between two data part at the side of MODEL & return back the result to controller & load the appropriate view according to returned result from MODEL.

Try it if u feel it's ok with u'r logic... Smile


Messages In This Thread
Form validation not in controller but rather in Model - by El Forum - 08-06-2010, 10:58 AM
Form validation not in controller but rather in Model - by El Forum - 08-06-2010, 10:04 PM
Form validation not in controller but rather in Model - by El Forum - 08-07-2010, 01:05 AM
Form validation not in controller but rather in Model - by El Forum - 08-07-2010, 03:01 AM
Form validation not in controller but rather in Model - by El Forum - 08-07-2010, 03:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB