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!



1.2k

We also got this problem.