Route into a controller sub-directory |
[eluser]sophistry[/eluser]
I grabbed the 1.6 release from the download page today (20080131) and I am seeing these same bugs when using regex routing (my controller is not in sub-dirs): http://ellislab.com/forums/viewthread/48779 http://ellislab.com/forums/viewthread/50795/ to sum up... regex routes set segments properly but don't send them as controller parameters properly. so, when i put a regex route like this: Code: $route['[a-z]{3}'] = "welcome/index/$1"; the parameter sent to the controller function is the literal string dollarsign1 ($1). I also tried $0 and that did the same thing. but, the segment_array() method shows the right data - it has the string captured by the regex. i checked the bug forum and this was the latest talk about it. is this expected behavior? should i just use the $this->uri->segment(n) method and be done? |
Messages In This Thread |
Route into a controller sub-directory - by El Forum - 01-30-2008, 05:42 AM
Route into a controller sub-directory - by El Forum - 01-30-2008, 06:15 AM
Route into a controller sub-directory - by El Forum - 01-30-2008, 06:52 AM
Route into a controller sub-directory - by El Forum - 01-30-2008, 07:36 AM
Route into a controller sub-directory - by El Forum - 01-30-2008, 04:06 PM
Route into a controller sub-directory - by El Forum - 01-30-2008, 04:15 PM
Route into a controller sub-directory - by El Forum - 01-30-2008, 04:23 PM
Route into a controller sub-directory - by El Forum - 01-31-2008, 07:33 AM
Route into a controller sub-directory - by El Forum - 01-31-2008, 01:35 PM
Route into a controller sub-directory - by El Forum - 01-31-2008, 01:44 PM
Route into a controller sub-directory - by El Forum - 01-31-2008, 01:49 PM
Route into a controller sub-directory - by El Forum - 01-31-2008, 02:34 PM
Route into a controller sub-directory - by El Forum - 01-31-2008, 02:51 PM
|