I want admin module with sub module like below structute,
application/
admin-modules/
default/
controllers/
etc..
user/
controllers/
etc..
It was really easy in ZF1 but don’t know how to create like this way any help will be highly appreciated.
Generally speaking, an Admin Module shouldn’t hold business-logic for other modules. Imagine following scenario:
Now this makes sense. Every Module can live on its own and there are no hidden dependencies. Now if you want to implement an admin module, it would simply gather information from those modules and provice Access-Control to the actions.
So basically all that your Admin-Module should do is:
But all logic and even the view-scripts should remain inside each representative Modules