Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# wassimn 12/2/2009 4:13 PM
Hi,

I'm not sure if this is a proper way to clarify my problem, I've been using Cuyahoga for a while now, what I'm trying to do is:

I developed two modules, one is for product listing/product details and the other is for purchase (rent DVD). I'm trying to use a method that is already written under the purchase module from the product detail module. As an example:

I want to display if the product is available before renting it, and all the methods regarding the product rent are done under the purchase module.

Please if you want a snap of the code don't hesitate to message me back.

Appreciate your help.
# Constructor 12/2/2009 7:08 PM
Can you have your methods in a static class that you can call from both (or any) module[s]?
# wassimn 12/2/2009 8:05 PM
Yep, but its preferable to keep each module with its own class and share the methods across both, but if i there is no solution, I'll do that.
# Constructor 12/2/2009 9:39 PM
wassimnYep, but its preferable to keep each module with its own class and share the methods across both, but if i there is no solution, I'll do that.

Is it the best idea to have separate modules for this? Would not a single module with different 'views' work?

I have created multiple modules that install from one master module. These share methods from within that module project via static class.
# wassimn 12/2/2009 10:25 PM
Tough solution, but I think it worth a try, I'll do it and get back to you in case I got stuck again :) Thank you very much, really appreciate your help.
# Constructor 12/2/2009 11:44 PM
wassimnTough solution, but I think it worth a try, I'll do it and get back to you in case I got stuck again :) Thank you very much, really appreciate your help.

It is very easy to have multiple modules installing beneath a 'master' module (I just call it that since I do not know what else to call it :) ). It just requires you to add the install sql into one module and use the masters DAO/Domain namespaces. I have done it on a few modules, there is nothing to it.