Welcome Guest, Not a member yet? Register   Sign In
'Thinking' (logic) code. Should it be in the controller or the model?
#1

[eluser]silverback[/eluser]
Hi,

Personally I liked the idea of slim controllers and fat models, but now I find I'm having small problems when delegating more of the logic to models.

For example, lets say we have a login form.
Should the controller simply call a method in the model which checks the form, checks the DB and returns TRUE/FALSE.
OR should the controller do the validation and simply pass a username/password to the model which checks the DB??




Theme © iAndrew 2016 - Forum software by © MyBB