Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: