summaryrefslogtreecommitdiffstats
path: root/user_guide/general/helpers.html
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-04-04 14:26:46 +0200
committerDerek Allard <derek.allard@ellislab.com>2008-04-04 14:26:46 +0200
commit1ea127ae8a8026af7679526af06ff297d5104104 (patch)
treef4e4af79cdfaaa2efb883f2305c8950a85c55c20 /user_guide/general/helpers.html
parent72c82c1de6efb25a529f3206800de7ddd70ea83e (diff)
doc fixes
Diffstat (limited to 'user_guide/general/helpers.html')
-rw-r--r--user_guide/general/helpers.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/user_guide/general/helpers.html b/user_guide/general/helpers.html
index 063ef720c..5569d9834 100644
--- a/user_guide/general/helpers.html
+++ b/user_guide/general/helpers.html
@@ -69,8 +69,7 @@ Each helper function performs one specific task, with no dependence on other fun
<p>CodeIgniter does not load Helper Files by default, so the first step in using
a Helper is to load it. Once loaded, it becomes globally available in your <a href="../general/controllers.html">controller</a> and <a href="../general/views.html">views</a>.</p>
-<p>Helpers are typically stored in your <dfn>system/helpers</dfn> directory. Alternately you can create a folder called <kbd>helpers</kbd> inside
-your <kbd>application</kbd> folder and store them there. CodeIgniter will look first in your <dfn>system/application/helpers</dfn>
+<p>Helpers are typically stored in your <dfn>system/helpers</dfn>, or <dfn>system/application/helpers </dfn>directory. CodeIgniter will look first in your <dfn>system/application/helpers</dfn>
directory. If the directory does not exist or the specified helper is not located there CI will instead look in your global
<dfn>system/helpers</dfn> folder.</p>
@@ -149,7 +148,7 @@ function any_in_array($needle, $haystack)<br />
function random_element($array)<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;shuffle($array);<br />
-&nbsp;&nbsp;&nbsp;&nbsp;return array_pop();<br />
+&nbsp;&nbsp;&nbsp;&nbsp;return array_pop($array);<br />
}<br />
</code>