Welcome Guest, Not a member yet? Register   Sign In
routes and passing variables to controller
#1

[eluser]Unknown[/eluser]
Hi, first post!

I'm having trouble with passing variables to my controller that contain a period in the value.

here's an example:

route:
$route['test/(:any)'] = "test/test_method/$1";

method is:
function test_method($val){
...
}

URL is domain.com/test/i.have.dots

the value that test_method receives is: i_have_dots

Why do the periods get replaced by underscores? and how do i change that!

Thanks!


Messages In This Thread
routes and passing variables to controller - by El Forum - 03-06-2010, 04:47 PM
routes and passing variables to controller - by El Forum - 03-06-2010, 04:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB