File tree Expand file tree Collapse file tree
user_guide_src/source/general Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,6 +76,19 @@ for details.
7676Or you can :ref: `specify a namespace <helpers-loading-from-specified-namespace >`
7777for a helper that you want to load.
7878
79+ Load Order
80+ ----------
81+
82+ The :php:func: `helper() ` function will scan through all defined namespaces and
83+ load in ALL matching helpers of the same name. This allows any module's helpers
84+ to be loaded, as well as any helpers you've created specifically for this application.
85+
86+ The load order is as follows:
87+
88+ 1. app/Helpers - Files loaded here are always loaded first.
89+ 2. {namespace}/Helpers - All namespaces are looped through in the order they are defined.
90+ 3. system/Helpers - The base file is loaded last.
91+
7992Loading Multiple Helpers
8093========================
8194
@@ -186,15 +199,7 @@ functions:
186199
187200.. important :: Do not specify the namespace ``App\Helpers``.
188201
189- The :php:func: `helper() ` function will scan through all PSR-4 namespaces defined in **app/Config/Autoload.php **
190- and load in ALL matching helpers of the same name. This allows any module's helpers
191- to be loaded, as well as any helpers you've created specifically for this application.
192-
193- The load order is as follows:
194-
195- 1. app/Helpers - Files loaded here are always loaded first.
196- 2. {namespace}/Helpers - All namespaces are looped through in the order they are defined.
197- 3. system/Helpers - The base file is loaded last.
202+ See `Load Order `_ for the order in which helper files are loaded.
198203
199204*********
200205Now What?
You can’t perform that action at this time.
0 commit comments