![]() |
Wildcard routing in 3.x - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: Wildcard routing in 3.x (/showthread.php?tid=68931) |
Wildcard routing in 3.x - Keiichi - 09-14-2017 Hi, I'm currently upgrading on of my site from CI 2 to 3. One of the controllers I had to give another name because of reserved php names. In my config/route.php I had set up these routes: PHP Code: $route['list/new'] = "lijst/mynew"; The 'lijst' controller has a lot of different arguments passed as searchengine-friendly arguments, like list/all/g/f/a/16/start/0/limit/15/ . i guess behaviour of the wildcard in CI 3.x has changed, in 2 it worked for me. Is there a possibility to have this done in CI? The passed arguments are finite, but it would take a whole bunch of routes to configure (and it's error-prone) Regards, Frank RE: Wildcard routing in 3.x - php_rocs - 09-14-2017 @Keiichi Here is a link to assist you: https://www.codeigniter.com/user_guide/general/routing.html RE: Wildcard routing in 3.x - Narf - 09-15-2017 More specifically the regular expressions section: https://www.codeigniter.com/user_guide/general/routing.html#regular-expressions Look at the login route example. |