Welcome Guest, Not a member yet? Register   Sign In
route question

Is it possible to do this:

$route['product/:any'] = "catalog/product_lookup";

From the user guide, it says that doing that will have any url that is product/anything will be sent to catalog/product_lookup

I'm wondering how it is possible to get that :any as a variable in the document. Is it done with the uri segment thing? If so, how?


EDIT: Would it be done like this:
$product_id = $this->uri->segment(2);

then $product_id would equal :any?

(If this is really simple, sorry, I'm new to using CI.)

Messages In This Thread
route question - by El Forum - 07-14-2007, 09:19 PM
route question - by El Forum - 07-15-2007, 03:34 AM

Theme © iAndrew 2016 - Forum software by © MyBB