Welcome Guest, Not a member yet? Register   Sign In
Putting (hardcoded) ids in routes
#2

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 ).
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB