re-route with optional argument. possible bug?? |
(06-09-2016, 01:09 AM)arma7x Wrote: http://localhost/<project>admin/foos does link to $route ["admin/foos" ] = "admin/hello" ;(which is not define in route) and i think will not link to The problem is that even though the parameter is optional, the route PHP Code: $route["admin/foos/(:num)"] = "admin/hello/$1"; PHP Code: $route["admin/hello/(:num)"] = "admin/hello/$1"; Code: http://localhost/<project>admin/foos Code: http://localhost/<project>admin/hello
Harpreet Bhatia
Web Developer / Analyst Technical Reviewer - "Codeigniter 2 Cookbook" |
Welcome Guest, Not a member yet? Register Sign In |