router advanced behavior

I get error when I have controler name like this: "ClientSessionController", when i changed name to "ClientsessionController" everything is ok, is this a bug?

ClientSessionController setuped like there: https://github.com/phalcon/mvc/tree/master/simple-subcontrollers $router->add('/client/:controller', array( 'namespace' => 'Controllers\Client', 'controller' => 1 ));

I think it because router is case sensitive and controller name is not.



83.5k

That depends on how you pass the controller in the URI:

clientsession -> ClientsessionController ClientSession -> ClientsessionController client-session -> ClientSessionController client_session -> ClientSessionController



1.1k

Thank you for explanation. This works like in zf, I completely forgotten to try it. Now founded in doc: http://docs.phalconphp.com/en/latest/reference/routing.html