summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2013-01-28 21:40:34 +0100
committerAndrey Andreev <narf@bofh.bg>2013-01-28 21:40:34 +0100
commit7bea4fb8a880d774f7b399f8c2cbcd75ce85123c (patch)
treeb8399037c4dbe0b6c051d2a6f34c7fec98df964f /user_guide_src/source
parentc26d34ff12458760eb843454d3224e1dad1fb2e0 (diff)
parent0c1e163057308abb7324e44081b47dc9937dde17 (diff)
Merge pull request #2203 from vlakoff/develop
Adjustments in routing documentation
Diffstat (limited to 'user_guide_src/source')
-rw-r--r--user_guide_src/source/general/routing.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide_src/source/general/routing.rst b/user_guide_src/source/general/routing.rst
index 2a0332088..ed21a6109 100644
--- a/user_guide_src/source/general/routing.rst
+++ b/user_guide_src/source/general/routing.rst
@@ -129,7 +129,7 @@ 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.
-..note:: You can also mix and match wildcards with regular expressions.
+.. note:: You can also mix and match wildcards with regular expressions.
Callbacks
=========
@@ -137,7 +137,7 @@ Callbacks
If you are using PHP >= 5.3 you can use callbacks in place of the normal
routing rules to process the back-references. Example::
- $route['products/([a-z]+)/edit/(\d+)'] = function ($product_type, $id)
+ $route['products/([a-zA-Z]+)/edit/(\d+)'] = function ($product_type, $id)
{
return 'catalog/product_edit/' . strtolower($product_type) . '/' . $id;
};