Skip to content

Commit e359bc7

Browse files
committed
docs: improve explanation
1 parent 26f6199 commit e359bc7

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

user_guide_src/source/general/helpers.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,13 @@ property in Controller instead. See :ref:`Controllers <controllers-helpers>`.
117117
Loading from Specified Namespace
118118
================================
119119

120-
Helpers can be loaded from directories outside of **app/Helpers** and
121-
**system/Helpers**, as long as that path can be found in defined namespaces.
120+
By default, CodeIgniter will search for the helper files in all defined namespaces
121+
and load all found files.
122122

123-
You would prefix the name of the Helper with the namespace that it can be located
124-
in. Within that namespaced directory, the loader expects it to live within a
125-
sub-directory named **Helpers**. An example will help understand this.
123+
If you want to load only a helper in a specific namespace, prefix the name of the
124+
helper with the namespace that it can be located in. Within that namespaced directory,
125+
the loader expects it to live within a sub-directory named **Helpers**. An example
126+
will help understand this.
126127

127128
For this example, assume that we have grouped together all of our Blog-related
128129
code into its own namespace, ``Example\Blog``. The files exist on our server at

0 commit comments

Comments
 (0)