hi,

I have also tried to make my modules work as you describe.

In customer projects I have worked with Drupal, and I like the ideology of
how
the modules work in Drupal.

One thing comes to my mind first:

Module does not always have controllers. I think Zend thinks it does. At
least there
should be controllers directory in your module.
So module could be something which just alters behaviour of other modules.

Well there's another thing to wonder:
Hook system between modules. E.g. how can I alter User_Form_Profile from
Mymodule
Maybe something like:
Zend_Application_Hook::invoke("alterForm", $form) which goes through all the
modules Hook classes if they have a alterForm method.

br, Marko



Mon Zafra wrote:
> 
> Something that I think ZF really needs are pre-built modules which
> immediately work when dropped into an application. It's near impossible to
> do before since there's no guarantee that a ZF project follows the
> recommended structure. I ported my CRUD module from another project to
> Zend_Application with the goal of making it work in any Zend_Tool-created
> project with minimal fuss.
> 
>     svn co http://mz-project.googlecode.com/svn/trunk/modules/crud
> 
> The resulting directory should be copied into the application/modules
> directory. As long as the modules resource plugin is enabled and a default
> Zend_Db_Table adapter is set, it should just work. The pages would be
> unstyled though since nothing is added to the public directory. I made
> another module that simulates serving of public resources from inside
> module
> directories:
> 
>     svn co http://mz-project.googlecode.com/svn/trunk/modules/modules
> 
> I wonder if there's any interest in these things? I started making an
> auth+ACL module but I kinda gave up since it's really hard to make it
> generic. If there's any interest perhaps I could start it over again.
> 
> 
>    -- Mon
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Drop-in-module-proof-of-concept-tp23452875p23496628.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to