Extending modules

Hi guys,

I wonder if there is any good way to extend a module.

Let’s say that I have a module called Comment and that users can have a custom module extended from Comment, for exemple CommentUser1 module and that it contains some derivated functions where I can customize the behavior of it. I wonder if I could use Behaviors, events, or just extend the module if possible. I also want to modify the relations of a given model within that module.

Thanks in advance for your answers

I think there will be no problems at all in extending the basic classes in whatever you need. This is basic OOP programming.

Instead, if you tried and not succeeded in it, please try to explain with some code examples.