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

Routing - organizing controllers in different directory lvls

Currently my project have a classic controller 'phalcon structure':

  app/
    controllers/
        ControllerBase.php
        IndexController.php
        SigninController.php
        SignupController.php
        ....
        ...
        ..

Now I want to create subfolder 'services' in controllers folder and place some services there:

  app/
      controllers/services
                          ControllerBase.php
                          IndexController.php
                          Services1Controller.php
                          Services2Controller.php
                          ....
                          ..
                          .
     controllers/
              ControllerBase.php
              IndexController.php
              SigninController.php
              SignupController.php
                          ....
                          ..
                          .

Is it posible and how to configure router? Same for reports

      controllers/reports
                          ControllerBase.php
                          IndexController.php
                          Report1Controller.php
                          Report2Controller.php
                          ....
                          ...
                          ..

My idea is to organize controllers in subfolder by their types and rest of controllers leave in 'controllers root dir'