-- Marko Korhonen <[EMAIL PROTECTED]> wrote
(on Tuesday, 28 October 2008, 05:39 AM -0700):
> I'm using Drupal for one my client and doing our internal projects with Zend
> Framework.
> 
> Drupal uses "hooks", so modules can interact with other modules or the core
> system.
> 
> I was wondering if I should create similar "hook" system on my Zend
> Framework project.
> I think there are 2 approaches (thinking it about 2 minutes):
> 
> 1. placing some HookClass in every module folder, which are called from
> every module/controller.
> 
> 2. having 1 controller plugin per module, when I can use the hooks defined
> in there.
> 
> 
> Has anyone similar needs, opinions or even solutions? 

*cough* action helpers *cough*.

Seriously, though, we have a fairly rich plugin architecture in the MVC
system already -- action helpers, view helpers, and front controller
plugins. Add to these the PluginLoader, and you can accomplish a lot.

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to