In one of the MercCamp presentations Yehuda mentioned that the core team is not sure how parts can be usable, so I would like to start a discussion about them. Here are my thoughts.
They are just like a controller - right? Then why they are NOT a controller. In Zend Framework (a PHP framework - have mercy on me :), there is a special view helper named *action*, that you use to dispatch from the view to an action, and whatever is rendered after this call is placed in the view where the call to action was. Using this approach all of the logic regarding articles (for example) will be contained in the controller. There could be a way to know whether the call was made this way so the layout can be disabled, or any other action taken. Here is the documentation for the action view helper in Zend Framework: http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.action Thoughts? Best of luck with merb :) -- My place to share my ideas: http://vladev.blogspot.com http://carutoo.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
