Welcome Guest, Not a member yet? Register   Sign In
Help deal with routes ?!
#1
Question 
(This post was last modified: 09-20-2019, 06:59 AM by Digital_Wolf.)

[/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']);
$routes->add('{locale}/news/main''App\News::posts', ['as' => 'All_News']); 
But clicking on another link, there I see that this placeholder CAN be used as a stand, which I do...
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.
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB