File tree Expand file tree Collapse file tree
user_guide_src/source/incoming Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,8 +85,9 @@ Specifying Route Handlers
8585Controller's Namespace
8686----------------------
8787
88- When you specify a controller and method name as a string,
89- if a controller name is stated without beginning with ``\ ``, the :ref: `routing-default-namespace ` will be prepended:
88+ When you specify a controller and method name as a string, if a controller is
89+ written without a leading ``\ ``, the :ref: `routing-default-namespace ` will be
90+ prepended:
9091
9192.. literalinclude :: routing/063.php
9293
@@ -115,9 +116,9 @@ Or using ``use`` keyword:
115116.. literalinclude :: routing/014.php
116117 :lines: 2-
117118
118- If you forget ``use App\Controllers\Home; ``, the controller classname is interpreted
119- as ``Config\Home ``, not ``App\Controllers\Home `` because ** app/Config/Routes.php **
120- has ``namespace Config; `` at the top.
119+ If you forget to add ``use App\Controllers\Home; ``, the controller classname is
120+ interpreted as ``Config\Home ``, not ``App\Controllers\Home `` because
121+ ** app/Config/Routes.php ** has ``namespace Config; `` at the top.
121122
122123.. note :: When you use Array Callable Syntax, the classname is always interpreted
123124 as a fully qualified classname. So :ref: `routing-default-namespace ` and
You can’t perform that action at this time.
0 commit comments