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

Router Lowercases Part of the Controller Name

Is this supposed to happen for Route Controller names?

I set a route with upper-camelcase classnames per PSR standards:

$router->add('/meet-me', ['controller' => 'MeetMe', 'action' => 'index']);

Here is the class:

class MeetMeController extends \BaseController {}

But I get the following error as it's lowercasing the "M" in "Me" for the controller:

Trace: #0 [internal function]: Phalcon\Mvc\Dispatcher->_throwDispatchException('MeetmeContro...', 2)
#1 [internal function]: Phalcon\Dispatcher->dispatch()
#2 /vagrant/www/projecty/public/index.php(58): Phalcon\Mvc\Application->handle()
#3 {main}
Message: MeetmeController handler class cannot be loaded
edited Oct '14

Yes that is exactly right nice find!



2.1k

We also got this problem.