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
Hello, how can I make "lang" section optional, please ?
There is regexp - "/\w{2}:lang/pages/:title"
Thanks for quick answer. (Sorry for my bad english).
The text was updated successfully, but these errors were encountered:
You can't really make a part optional at this point, you'd have to define two separate routes for this:
$r->add('/\w{2}:lang/pages/:title', ...); $r->add('/pages/:title', ...);
If you have to do this a lot, you could automate the creation of these routes:
foreach ($myRoutes as $route) { $r->add('/\w{2}:lang' . $route['route'], ...); $r->add($route['route'], ...); }
Sorry, something went wrong.
No branches or pull requests
Hello, how can I make "lang" section optional, please ?
There is regexp - "/\w{2}:lang/pages/:title"
Thanks for quick answer.
(Sorry for my bad english).
The text was updated successfully, but these errors were encountered: