Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Can my application start with SessionController not IndexController?

My application starts with Login page, so i assume i need SessionController more than i need IndexController.

When i rename Index to Session, phalcon is always searching for IndexController and throws an error "IndexController handler class cannot be loaded".

Is there a possibility to avoid having IndexCntroller in the app?



19.9k
Accepted
answer

Yes, you can define your custom routes. Please check:

http://docs.phalconphp.com/en/latest/reference/routing.html



6.8k

yes, you are right, i added routes file to config Dir with custom navigation rules, then added it to services and it works! Thnx.