Skip to content

Commit 8e39647

Browse files
author
obozdag
authored
docs: Update routing.rst
Updated the explanation under "Array Callable Syntax" header.
1 parent e14e145 commit 8e39647

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

user_guide_src/source/incoming/routing.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ Or using ``use`` keyword:
122122
:lines: 2-
123123

124124
If you forget to add ``use App\Controllers\Home;``, the controller classname is
125-
interpreted as ``Config\Home``, not ``App\Controllers\Home`` because
126-
**app/Config/Routes.php** has ``namespace Config;`` at the top.
125+
interpreted as ``\Home``, not ``App\Controllers\Home``.
127126

128127
.. note:: When you use Array Callable Syntax, the classname is always interpreted
129128
as a fully qualified classname. So :ref:`routing-default-namespace` and

0 commit comments

Comments
 (0)