Welcome Guest, Not a member yet? Register   Sign In
Routing Question
#1

[eluser]ronnie_nsu[/eluser]
Hey Guys
I have a controller <b>quote</b> and there's a new controller that extends the previous one
called <b>quote_new</b>.Now I would like to pass all request to quote to quote_new.How do i do it using the routing??Any help is greatly appreciated!

i am doing something like this in my routes.php file but doesnt seem to work :-(
$route['quote/:any'] = "quote_new/$1";

Thank you
#2

[eluser]BrianDHall[/eluser]
So close! You are just missing parens to capture the result, it seems to me.

Code:
$route['quote/(:any)'] = "quote_new/$1";

Untested, but I think that should work.
#3

[eluser]ronnie_nsu[/eluser]
[quote author="BrianDHall" date="1257547197"]So close! You are just missing parens to capture the result, it seems to me.

Code:
$route['quote/(:any)'] = "quote_new/$1";

Untested, but I think that should work.[/quote]

HOOooOLY its working!THANKS!




Theme © iAndrew 2016 - Forum software by © MyBB