@@ -24,8 +24,8 @@ in your :doc:`controller </incoming/controllers>` and
2424:doc: `views </outgoing/views >`.
2525
2626Helpers are typically stored in your **system/Helpers **, or
27- **application /Helpers directory **. CodeIgniter will look first in your
28- **application /Helpers directory **. If the directory does not exist or the
27+ **app /Helpers directory **. CodeIgniter will look first in your
28+ **app /Helpers directory **. If the directory does not exist or the
2929specified helper is not located there CI will instead look in your
3030global *system/Helpers/ * directory.
3131
6464Loading from Non-standard Locations
6565-----------------------------------
6666
67- Helpers can be loaded from directories outside of **application /Helpers ** and
67+ Helpers can be loaded from directories outside of **app /Helpers ** and
6868**system/Helpers **, as long as that path can be found through a namespace that
6969has been setup within the PSR-4 section of the :doc: `Autoloader config file <../concepts/autoloader >`.
7070You would prefix the name of the Helper with the namespace that it can be located
@@ -100,7 +100,7 @@ URI to the controller/method you wish to link to.
100100"Extending" Helpers
101101===================
102102
103- To "extend" Helpers, create a file in your **application /Helpers/ ** folder
103+ To "extend" Helpers, create a file in your **app /Helpers/ ** folder
104104with an identical name to the existing Helper.
105105
106106If all you need to do is add some functionality to an existing helper -
@@ -114,7 +114,7 @@ your version. In this case it's better to simply "extend" the Helper.
114114 add to or or to replace the functions a Helper provides.
115115
116116For example, to extend the native **Array Helper ** you'll create a file
117- named **application /Helpers/array_helper.php **, and add or override
117+ named **app /Helpers/array_helper.php **, and add or override
118118functions::
119119
120120 // any_in_array() is not in the Array Helper, so it defines a new function
@@ -140,12 +140,12 @@ functions::
140140 return array_pop($array);
141141 }
142142
143- The **helper() ** method will scan through all PSR-4 namespaces defined in **application /Config/Autoload.php **
143+ The **helper() ** method will scan through all PSR-4 namespaces defined in **app /Config/Autoload.php **
144144and load in ALL matching helpers of the same name. This allows any module's helpers
145145to be loaded, as well as any helpers you've created specifically for this application. The load order
146146is as follows:
147147
148- 1. application /Helpers - Files loaded here are always loaded first.
148+ 1. app /Helpers - Files loaded here are always loaded first.
1491492. {namespace}/Helpers - All namespaces are looped through in the order they are defined.
1501503. system/Helpers - The base file is loaded last
151151
0 commit comments