Welcome Guest, Not a member yet? Register   Sign In
Controller with index($id) method with parameter
#4

(This post was last modified: 08-25-2021, 01:29 PM by Corsari.)

Thank you

yes, it works

thank to your hint , I went back to read the Routing section in the guide and the last two examples (like your) do the job
https://codeigniter.com/user_guide/incom...l#examples

and I've done like this

PHP Code:
$routes->add('jobs/(:num)''jobs::index/$1'); 

I was doing the route wrong instead of "::" I was using "/"
Reply


Messages In This Thread
RE: Controller with index($id) method with parameter - by Corsari - 08-25-2021, 01:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB