Controller with index($id) method with parameter |
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 "/" |
Messages In This Thread |
Controller with index($id) method with parameter - by Corsari - 08-25-2021, 05:42 AM
RE: Controller with index($id) method with parameter - by captain-sensible - 08-25-2021, 06:56 AM
RE: Controller with index($id) method with parameter - by plaztic - 08-25-2021, 10:52 AM
RE: Controller with index($id) method with parameter - by Corsari - 08-25-2021, 01:06 PM
RE: Controller with index($id) method with parameter - by captain-sensible - 08-26-2021, 01:45 AM
|