Welcome Guest, Not a member yet? Register   Sign In
re-route with optional argument. possible bug??
#8

(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
$route ["admin/foos/(:num)" ] = "administered/hello/$1" ;

The problem is that even though the parameter is optional, the route
PHP Code:
$route["admin/foos/(:num)"] = "admin/hello/$1"
should still behave as
PHP Code:
$route["admin/hello/(:num)"] = "admin/hello/$1"
simply calling urlsĀ 
Code:
http://localhost/<project>admin/foos
and
Code:
http://localhost/<project>admin/hello
should show same result.
Harpreet Bhatia
Web Developer / Analyst
Technical Reviewer - "Codeigniter 2 Cookbook"

Reply


Messages In This Thread
RE: re-route with optional argument. possible bug?? - by harpreet - 06-09-2016, 01:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB