Skip to content

Commit ca2fb2d

Browse files
committed
docs: fix wording, function and method
In a class, we use the word `method`.
1 parent aac65c0 commit ca2fb2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

user_guide_src/source/general/helpers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ long as you load it before you use it.
6666

6767
You can load your helpers in your
6868
controller constructor so that they become available automatically in
69-
any function, or you can load a helper in a specific function that needs
69+
any method, or you can load a helper in a specific method that needs
7070
it.
7171

7272
However if you want to load in your controller constructor, you can use the ``$helpers``
@@ -130,7 +130,7 @@ functions:
130130

131131
.. literalinclude:: helpers/006.php
132132

133-
The ``helper()`` method will scan through all PSR-4 namespaces defined in **app/Config/Autoload.php**
133+
The ``helper()`` function will scan through all PSR-4 namespaces defined in **app/Config/Autoload.php**
134134
and load in ALL matching helpers of the same name. This allows any module's helpers
135135
to be loaded, as well as any helpers you've created specifically for this application. The load order
136136
is as follows:

0 commit comments

Comments
 (0)