single modules folder with sub modules

2 years ago

simonjcarr
Member | 28
+
0
-

The application I am writing uses modules, I can get the default module structure to work AdminModule, FrontModule etc, but I want to put my modules in a Module folder and then split the modules in to front end and back end modules.

-app
---Modules
------AdminModule
---------ReportingModule
---------SecurityModule
---------UsersModule

------FrontModule
---------ReportingModule
---------SettingsModule
---------UsersModule

How can I achieve this?

2 years ago

Hurass
Member | 114
+
0
-

It's not a problem. You can change a directory structure and refactoring namespaces (namespace should be the same as folder structure). And you must edit your routes. How look your router now?

2 years ago

CZechBoY
Member | 3333
+
0
-

You dont need to change routes.. You can only change presenter mapping.

2 years ago

simonjcarr
Member | 28
+
0
-

Sorry, I don't understand what you mean by Presenter mapping.

2 years ago

CZechBoY
Member | 3333
+
0
-

in your configuration file

application:
    mapping:
        *: app\Modules\*Module\*Presenter