summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/general
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-08-27 14:29:31 +0200
committerAndrey Andreev <narf@devilix.net>2014-08-27 14:29:31 +0200
commitd4afe4a074015af109f1ab482f486d71e0b883f4 (patch)
tree5dad452538ca0339b9dd658f828a9add30f7c2a8 /user_guide_src/source/general
parent294cff79a8d867d51efc4bd0a29d0a2a6f524625 (diff)
[ci skip] Fix routing documentation (#3192)
It described a feature that doesn't exist.
Diffstat (limited to 'user_guide_src/source/general')
-rw-r--r--user_guide_src/source/general/routing.rst4
1 files changed, 1 insertions, 3 deletions
diff --git a/user_guide_src/source/general/routing.rst b/user_guide_src/source/general/routing.rst
index 0b91d3fa9..766e0b2ab 100644
--- a/user_guide_src/source/general/routing.rst
+++ b/user_guide_src/source/general/routing.rst
@@ -116,15 +116,13 @@ call the "shirts" controller class and the "id_123" method.
With regular expressions, you can also catch a segment containing a
forward slash ('/'), which would usually represent the delimiter between
multiple segments.
+
For example, if a user accesses a password protected area of your web
application and you wish to be able to redirect them back to the same
page after they log in, you may find this example useful::
$route['login/(.+)'] = 'auth/login/$1';
-That will call the "auth" controller class and its ``login()`` method,
-passing everything contained in the URI after *login/* as a parameter.
-
For those of you who don't know regular expressions and want to learn
more about them, `regular-expressions.info <http://www.regular-expressions.info/>`
might be a good starting point.