From 7184f342863b7056437ce441a4fed135128cd8f6 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 26 Dec 2007 14:47:10 +0000 Subject: example fix --- user_guide/general/routing.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'user_guide/general') diff --git a/user_guide/general/routing.html b/user_guide/general/routing.html index 15ba73cee..f7f93c838 100644 --- a/user_guide/general/routing.html +++ b/user_guide/general/routing.html @@ -114,14 +114,14 @@ Higher routes will always take precedence over lower ones.

Here are a few routing examples:

$route['journals'] = "blogs"; -

Any URL containing the word "journals" in the first segment will be remapped to the "blogs" class.

+

A URL containing the word "journals" in the first segment will be remapped to the "blogs" class.

$route['blog/joe'] = "blogs/users/34"; -

Any URL containing the segments blog/joe will be remapped to the "blogs" class and the "users" method. The ID will be set to "34".

+

A URL containing the segments blog/joe will be remapped to the "blogs" class and the "users" method. The ID will be set to "34".

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

Any URL with "product" as the first segment, and anything in the second will be remapped to the "catalog" class and the "product_lookup" method.

+

A URL with "product" as the first segment, and anything in the second will be remapped to the "catalog" class and the "product_lookup" method.

Important: Do not use leading/trailing slashes.

-- cgit v1.2.3-24-g4f1b