![]() |
Question about $route['some'] - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Question about $route['some'] (/showthread.php?tid=75433) |
Question about $route['some'] - Francisco Maneiro - 02-05-2020 Hello, here i am whit some problem whit my route configuration, i am in some trouble making a new $route parameter. i dont know what i doing wrong because i make too much other routes and it work fine. This route whenever i use give a 404 error. even when the index function or whatever other function i use exist. i dont know if there is a limit whit the routes. i will apreciated any help u can give for this problem. ![]() ![]() PHP Code: $route['blog/buscar(.+)'] = "Blog"; there i goin to leave every other route i use PHP Code: $route['categoria-(.+)/(.+)'] = 'Categorias/categoria_spec'; RE: Question about $route['some'] - InsiteFX - 02-06-2020 All routes that are (.+) or (:any) are catch all routes and need to be placed an the end of all your routes. Routes are called in the order that they are defined in. |