Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - Nested Modules?
#1

[eluser]JasonS[/eluser]
I have asked in the modular extensions thread but haven't had much luck.

I am trying to nest a module within a module.

I want to have the following..

modules
- admin
--- users
--- pages
--- etc

I thought the documentation said that modules can be nested but I cannot work out how to do it and after speaking with a couple of people it would appear it isn't possible. As a result does anyone know how I can achieve this?

Is there a way to achieve the above either with the routes config file or by dynamic routing in the admin controller.

For example, when I call admin/users, the admin module controller is fired. Is there some way to add some code in the construct function to reroute to whatever nested module is called?

If none of the above is possible or easily achieved could someone tell me how I can create a second modules folder?

This way in my application I would have

/modules
-- modules here
/admin
-- admin modules here

Logistically this might actually be better.

To add a final layer of complexity, is it possible to delete the controller/model folder from my application directory? The views folder is handy for default view files like header files but I have no use for the default controller/model folders as everything is in modules.

Thanks for taking the time to read my questions.


Messages In This Thread
Modular Extensions - Nested Modules? - by El Forum - 11-03-2008, 12:26 PM
Modular Extensions - Nested Modules? - by El Forum - 11-03-2008, 12:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB