• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help deal with routes ?!

#1
Question 
[/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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.