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 ). |
Messages In This Thread |
Putting (hardcoded) ids in routes - by WhiteListed - 03-14-2019, 07:12 AM
RE: Putting (hardcoded) ids in routes - by WhiteListed - 03-14-2019, 12:38 PM
RE: Putting (hardcoded) ids in routes - by puschie - 03-15-2019, 04:54 AM
RE: Putting (hardcoded) ids in routes - by arunwalls - 04-06-2019, 03:44 AM
|