• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Putting (hardcoded) ids in routes

I had a quick look into this and it seems that CodeIgniter does something weird with the routing here. For some reason the url is not divided into segments correctly (because the / gets translated into a \ somewhere). Then the

PHP Code:
$segments explode('/'$uri); 

in the autoRoute function does not divide the URI into the correct segments. Which in turn leads to CodeIgniter trying to find the method "id\123" in the Pages controller, which of course does not exist. If I have some time this evening I will try to find out why the / in the $uri gets translated into a \.

I'll get back when I have some more information to share. In the meantime, I still hope that someone can verify that this is not only happening on my machine (or can point my in the direction of where to fix this bug Cool ).

Messages In This Thread
RE: Putting (hardcoded) ids in routes - by WhiteListed - 03-14-2019, 12:38 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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