We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

How to use camel controller?

This is my controller

class AdminConsoleController extends BaseController
{

        public function indexAction()
        {
        }
}

And I use these urls

www.xxx.com/AdminConsole
www.xxx.com/adminconsole
www.xxx.com/Adminconsole
www.xxx.com/adminConsole

I can get this error only

PhalconException: AdminconsoleController handler class cannot be loaded

How to use this controller without chaging the file name?



98.9k
Accepted
answer

You have to access the controller this way:

www.xxx.com/admin-console