hi,

I'll try to make a brief example what I try to accomplish.

First I have a module called "customers". ok.
if I go to /customers/index/read/id/4 > it renders the R in CRUD. Ok.

Now I'll make a new module called "projects".

In the customer's detail page mentioned above, I want to list customers
projects
and I like to use action view helper $this->action("projects", "list",
"bycustomer", array("id" => 4);

And that's ok too. BUT, now I was forced to write code which is depended on
the projects module.
If I could turn this as follows:

I have base controller action class and where I could do the following:

1. get paths to all modules (this function already exists)
2. loop the list and find some class in every module, eg. Hook.php
3. well, in this case I could call some predefined method in the Hook class,
eg Hook::getActionsToCall(action = customers, controller = index, action =
read)
4. this method would return the information that action helper should call
projects/list/bycustomer/id/4 on this page


If I delete the projects module, this method is not called and program does
not crash...

something like that...?

br, Marko
-- 
View this message in context: 
http://www.nabble.com/Hooks-between-Modules-tp20206453p20206803.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to