Welcome Guest, Not a member yet? Register   Sign In
Catch-all routing question
#1

[eluser]Unknown[/eluser]
is there any way to get the whole uri with a regex?

I want to to pass the whole uri to the show function of the Page controller.

So, a url like "/pages/products/adapters/" would end up invoking

$page->show('/pages/products/adapters')

I tried this, but only the first part comes back.

$route["(.*)"]="page/show/$1";

I appreciate the help.

Thanks.


Messages In This Thread
Catch-all routing question - by El Forum - 06-01-2009, 12:10 AM
Catch-all routing question - by El Forum - 06-01-2009, 12:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB