From d4afe4a074015af109f1ab482f486d71e0b883f4 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Wed, 27 Aug 2014 15:29:31 +0300 Subject: [ci skip] Fix routing documentation (#3192) It described a feature that doesn't exist. --- user_guide_src/source/general/routing.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'user_guide_src') 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 ` might be a good starting point. -- cgit v1.2.3-24-g4f1b