Help deal with routes ?! |
[/url][url=https://codeigniter4.github.io/userguide/incoming/routing.html#placeholders]I already asked a similar question, but alas, the response I never received.
Reading the documentation on the link, I notice that the placeholder "{locale} " CANNOT be used as a route for example: PHP Code: $routes->add('{locale}/news/post/id', 'App\News::posts\$1', ['as' => 'Select_News']); Only here there is one problem when I use method "->back('Select_News');" in the browser line appear these strange characters "http://example.ru/%7Blocale%7D/News/Post/1", although should be EN or RU, in dependence where initially I was. How can I fix this ? I would change this world, but God doesn't give me the source.
|
Messages In This Thread |
Help deal with routes ?! - by Digital_Wolf - 09-20-2019, 06:57 AM
RE: Help deal with routes ?! - by ciadmin - 09-20-2019, 07:12 AM
RE: Help deal with routes ?! - by Digital_Wolf - 09-20-2019, 07:16 AM
RE: Help deal with routes ?! - by Digital_Wolf - 09-21-2019, 02:02 AM
RE: Help deal with routes ?! - by ciadmin - 09-21-2019, 05:43 AM
|