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

Phalcon 1.2 Beta 1, router problem

Router should camelize url by default but I had problem with this.

https://localhost/user-info - dont work, default controller/default action is dispatched https://localhost/user_info - works as excepted

"Controller names are camelized, this means that characters (-) and (_) are removed and the next character is uppercased. For instance, some_controller is converted to SomeController."

My router.php file is ok

$router = new Phalcon\Mvc\Router();
$router->setUriSource(\Phalcon\Mvc\Router::URI_SOURCE_SERVER_REQUEST_URI);
$router->removeExtraSlashes(true);
$router->setDefaultController('error404');
$router->setDefaultAction('index');

$router->add('/', "Home::index");

return $router;


98.9k

Thanks for reporting this, can you install 1.2.0 again?