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.
#2

[eluser]Tom Schlick[/eluser]
if you are going to prefix them with the /pages/ then it will use the pages controller. so take a look at the _remap function with the controllers in the user guide




Theme © iAndrew 2016 - Forum software by © MyBB