CodeIgniter Forums
Matchbox nested modules - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Matchbox nested modules (/showthread.php?tid=9440)



Matchbox nested modules - El Forum - 06-25-2008

[eluser]Tomasz OleÅ›[/eluser]
Hi,

I installed Matchbox library and it works fine, what I want to ask is that if anyone have used the library with nested modules or if it is even possible ? What I would like to achieve is something like this:

Code:
modules (1)
  - module_1 (2)
    - controllers (3)
    - models (3)
    - views (3)
    - module_1_1 (3)
       - controllers (4)
       - models (4)
       - views (4)

    ....

Any help is welcome Smile

Best regards,
Tom


Matchbox nested modules - El Forum - 06-29-2008

[eluser]esra[/eluser]
Not with that directory structure using the standard file distribution, but you should be able to do this:

Code:
modules (1)
  - module_1 (2)
    - controllers (3)
      - module_1_1 (4)
    - models (3)
      - module_1_1 (4)
    - views (3)
      - module_1_1 (4)

To use the above, the subdirectory under controllers/ needs to be included in the url after the module name.

An alternate solution is to modify Matchbox's Loader.php to support your requirements.