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

controllers in subdirectories

Привет! Подскажите пожалуйста, можно ли контроллеры по подгруппам распихать в папке Controllers? А то их там так много ...

Hello! There are a lot of controllers in the "controllers" group. You can easily get confused. Is it possible to organize them according to the subgroups? Thank you

There is option to use multimodule, so yea you can organize your app in subdirectories.



32.3k
Accepted
answer

Hi @Syurmol you can check this example with subcontrollers

Good luck



14.4k

Спасибо !!!



14.4k

MyApp\Controllers\IndexController handler class cannot be loaded :`- (

Check the route and files