How do you decide if something goes in the view or the controller?
Here are some specific examples:
- Zend_Captcha: Does the controller generate the captcha and pass it to the view or does the view generate it?
- Zend_Alc: Does the view decide if a segment of the view should be displayed to the user or do you have multiple views depending on available actions and the controller picks the right one for display?
- Zend_Session: Does the view keep track of who is viewing it based on the session data or is that parsed by the controller and presented to the view as a parameter of some kind?
Are the rules or guidelines for what component (model, view, or controller) should do what written somewhere where I can view them? I didn't see that in the documentation on the Zend Framework site.