We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to vokuro syntax, if I do http://localhost/vokuro/zh/reset-password/somecode/3
http://localhost/vokuro/zh/reset-password/somecode/3
<?php $router = new Phalcon\Mvc\Router(); $router->add('/confirm/{code}/{uid}', array( 'controller' => 'user_control', 'action' => 'confirmEmail' )); $router->add('/reset-password/{code}/{uid}', array( 'controller' => 'user_control', 'action' => 'resetPassword' )); $router->add('/{language:[a-z]{2}+}/confirm/{code}/{uid}', array( 'controller' => 'user_control', 'action' => 'confirmEmail' )); $router->add('/{language:[a-z]{2}+}/reset-password/{code}/{uid}', array( 'controller' => 'user_control', 'action' => 'resetPassword' )); $router->add('/{language:[a-z]{2}+}/:controller/:action/:params/?', array( 'controller' => 2, 'action' => 3, "params" => 4, )); $router->add('/{language:[a-z]{2}+}/:controller/:action/?', array( 'controller' => 2, 'action' => 3, )); $router->add('/{language:[a-z]{2}+}/:controller/?', array( 'controller' => 2, )); $router->add('/{language:[a-z]{2}+}/?', array( 'controller' => 'index', 'action' => 'index', )); return $router;
the router will parse it reset-password as controller instead of using user_control as controller.
Vokuro\Controllers\ResetPasswordController handler class cannot be loaded #0 [internal function]: Phalcon\Mvc\Dispatcher->_throwDispatchException('Vokuro\Controll...', 2) #1 [internal function]: Phalcon\Dispatcher->dispatch() #2 C:\xampp\htdocs\vokuro\public\index.php(27): Phalcon\Mvc\Application->handle() #3 {main}
The text was updated successfully, but these errors were encountered:
Routes are traversed backwards, ie from the last one to the first one.
/zh/reset-password/somecode/3 will be matched by /{language:[a-z]{2}+}/:controller/:action/:params/?.
/zh/reset-password/somecode/3
/{language:[a-z]{2}+}/:controller/:action/:params/?
Try swapping
and
'/{language:[a-z]{2}+}/reset-password/{code}/{uid}'
Sorry, something went wrong.
Okay I've misunderstood it.
No branches or pull requests
According to vokuro syntax, if I do
http://localhost/vokuro/zh/reset-password/somecode/3
the router will parse it reset-password as controller instead of using user_control as controller.
The text was updated successfully, but these errors were encountered: