Routing: Passing entire expression as unique argument |
[eluser]Unknown[/eluser]
Hello, I'm trying various configurations with the Code Igniter routing feature. I'm developing a filebrowser-like webapp, and my goal is: Given this URL: http://example.com/app/controller/method/path/to/file I want that CodeIgniter call my method on controller passing it the rest of the url (something like $controller->method("path/to/file") I tried with: $route['controller/method/(:any)'] = "controller/method/$1"; and $route['controller/method/(.*)$'] = "controller/method/$1"; But I only get the first path component as argument to my method. (I tried various regexes and nothing) How can I get this behaviour? Thank you |
Messages In This Thread |
Routing: Passing entire expression as unique argument - by El Forum - 04-06-2010, 05:02 AM
Routing: Passing entire expression as unique argument - by El Forum - 04-06-2010, 05:31 PM
Routing: Passing entire expression as unique argument - by El Forum - 04-07-2010, 03:20 AM
Routing: Passing entire expression as unique argument - by El Forum - 04-07-2010, 03:54 AM
Routing: Passing entire expression as unique argument - by El Forum - 04-07-2010, 04:02 AM
Routing: Passing entire expression as unique argument - by El Forum - 04-07-2010, 09:27 AM
|