Skip to content

Commit 6f9030a

Browse files
committed
docs: add note on namespace
1 parent 9a42d42 commit 6f9030a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

user_guide_src/source/general/helpers.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ functions:
147147

148148
.. literalinclude:: helpers/006.php
149149

150+
.. important:: Do not specify the namespace ``App\Helpers``.
151+
150152
The :php:func:`helper()` function will scan through all PSR-4 namespaces defined in **app/Config/Autoload.php**
151153
and load in ALL matching helpers of the same name. This allows any module's helpers
152154
to be loaded, as well as any helpers you've created specifically for this application. The load order

0 commit comments

Comments
 (0)