We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Sub folder inside Controllers folder?

Hello it's my first time here, and I have some thing to ask:

Just an example

app
 |-- controllers
 |...     |--  admin
 |...     |...      |--  UsersController.php
 |...     |...      `--  PostsController.php
 |...     |          
 |...     |--- UsersController.php
 |...     |   
 |...      `-- PostsController.php
 |
 `-- views
...      |-- admin
...      |...    |-- users
...      |...    |....      |-- edit.volt
...      |...    |....      `-- delete.volt
...      |...     `-- posts
...      |..............             |-- edit.volt
...      |..............             `--delete.volt
...      |-- users
...      |...      |-- edit.volt
...      |...      `-- delete.volt
...       `-- posts
.............             |-- edit.volt
.............              `--delete.volt

I'm pretty new to all of this, but is this kind of thing possible? I know that I could use multi-modules to separate front end and back end stuff, but that's not what I really wanted here.

Please help.



5.2k

thanks. It's nice to have a response in detail like this. Keep up the good work. I was waiting the feature hasManyThrough for awhile now. Hope version 1.2 will be released soon.