Re:Are we doing MVC wrong?
by pionar on Sunday October 20, 2013 @02:34PM
(#6580892)
Your controller should be passing the session state to the model (passing the items needed from session state for the model to manipulate data). Models should have no concept of a session. They should be almost entirely self-contained.
Controllers should do only basic validation (length, format, etc.)
Controllers should do only basic validation (length, format, etc.)