Welcome Guest, Not a member yet? Register   Sign In
Routing with parametars problem
#5

(04-08-2022, 08:39 AM)iRedds Wrote: The namespace uses a backslash.
$routes->add('product/(:any)', 'Namespace\Catalog::productLookup/$1');

https://codeigniter.com/user_guide/incom...aceholders

O M G, I am official retarded for missing this Confused

Tnx a lot for pointing out this stupid mistake. Now it is working yeee

But what is not now clear to me is why my other routes works with wrong slash?
If you look my example form first post you will see that I have all wrong slashes but only one with parameter really throw error, and that is why I didn't notice it before. But still why other routes works?
Reply


Messages In This Thread
Routing with parametars problem - by Didytz - 04-08-2022, 07:09 AM
RE: Routing with parametars problem - by iRedds - 04-08-2022, 07:35 AM
RE: Routing with parametars problem - by Didytz - 04-08-2022, 08:26 AM
RE: Routing with parametars problem - by iRedds - 04-08-2022, 08:39 AM
RE: Routing with parametars problem - by Didytz - 04-08-2022, 08:44 AM
RE: Routing with parametars problem - by iRedds - 04-08-2022, 10:23 PM
RE: Routing with parametars problem - by kenjis - 04-08-2022, 05:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB