Jump to content


Photo

Extension or Module?

extension module

  • Please log in to reply
2 replies to this topic

#1 Sacha Telgenhof

Sacha Telgenhof

    Advanced Member

  • Members
  • PipPipPip
  • 86 posts
  • LocationTokyo, Japan

Posted 22 April 2013 - 12:56 AM

Hi!

 

Just a quick question, you can help me with. I am trying to extend Zurmo and looking what is the best way to do that. 

 

I would like my 'add-on' to be self contained as much as possible; i.e. that all the add-on files are in one single folder only. I tried to create an extension with subfolders for the modules, but can't seem to get that working. Is it possible in Zurmo (or Yii for that matter) to have a modules subfolder in a modules folder?

 

I would like to accomplish something like this:

 

../modules/"my addon"/modules/"module1"

../modules/"my addon"/modules/"module2"

../modules/"my addon"/modules/"module3"

etc.
 
If possible, how do I configure this? Can't seem to get this working...
 
Thanks in advance!
Sacha
 


#2 Ivica

Ivica

    Advanced Member

  • Moderators
  • 565 posts

Posted 23 April 2013 - 04:53 AM

Yii itself support submodules, but I don't think that this might work fine with Zurmo, probably because database autobuild functions, and also class loader might have some issues. 

http://www.yiiframew...n/basics.module

 

But I will suggest you different idea, maybe you can create new module(the one that you wanted to make as submodule), and make it depends on another module. It is not ideal, as it would be using submodules.



#3 Sacha Telgenhof

Sacha Telgenhof

    Advanced Member

  • Members
  • PipPipPip
  • 86 posts
  • LocationTokyo, Japan

Posted 23 April 2013 - 05:32 AM

Hi Ivica,

 

Thank you for your answer. In fact I already tried your suggestion to create a new module with submodules. This works except that I had to extend a submodules RandomDataUtil class as it was not looking in the submodules data folder.

 

Apart from that no issues so far...

 

Cheers! Sacha







Also tagged with one or more of these keywords: extension, module

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users