Modules – app file hierarchy
Notice: This thread is very old.
- netteman
- Member | 125
Hi,
I created my Admin and Front modules and everything works. I'd like to ask if I can use the following file hierarchy (which works) or if I run into problems soon:
app/
AdminModule/
presenters/
FrontModule/
presenters/
config/
forms/
model/
router/
(this file hierarchy is based on various tutorials I found on the internet)
Thanks :)
Last edited by netteman (2017-04-28 20:10)
- JZechy
- Member | 161
@netteman There is nothing wrong about it.
But, with experiences from work, I can suggest this:
- Consider creating components/forms folders for each module. You can be in situation where you want write components only for admin/front/… It is good seperate them.
- You can consider too creating config files for each modules. But this is most usefull in situation where can be in need for seperating modules anywhere else.