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

(06-09-2016, 02:10 AM)dubefx Wrote: $route["admin/foos(/(.*?))?"] = function($a=null){
return 'admin/hello' . $a;
}

Needs  to add addtional slash to return value:

$route["admin/foos(/(.*?))?"] = function($a=null){
return 'admin/hello/' . $a;
}
Reply
#12

(06-09-2016, 02:17 AM)harpreet Wrote:
(06-09-2016, 02:10 AM)ciadmin Wrote: The parameter in your rule is not optional. You need to do what cartalot suggested in the first reply to your post.

So should we consider this "missing feature" or "bug"?

No - this is just the way the routing works ... nothing "missing" and not a "bug".
Reply
#13

(06-09-2016, 05:07 AM)ciadmin Wrote:
(06-09-2016, 02:17 AM)harpreet Wrote:
(06-09-2016, 02:10 AM)ciadmin Wrote: The parameter in your rule is not optional. You need to do what cartalot suggested in the first reply to your post.

So should we consider this "missing feature" or "bug"?

No - this is just the way the routing works ... nothing "missing" and not a "bug".

OK thanks.
Harpreet Bhatia
Web Developer / Analyst
Technical Reviewer - "Codeigniter 2 Cookbook"

Reply




Theme © iAndrew 2016 - Forum software by © MyBB