summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorRobin Sowell <robin.sowell@ellislab.com>2009-05-26 23:45:54 +0200
committerRobin Sowell <robin.sowell@ellislab.com>2009-05-26 23:45:54 +0200
commit96dafa84d2c6e1f7792e67d0ea0bc81c69543894 (patch)
tree59cd308b63882be5862ec5cbdb3c67cdb050b160 /user_guide
parent03d783ba0bbee1a5f76b6ad686bbcee59a2e21fb (diff)
Directory helper's directory_map tweaked to allow inclusion of hidden files.
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/changelog.html1
-rw-r--r--user_guide/helpers/directory_helper.html7
2 files changed, 6 insertions, 2 deletions
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index c423ac6e7..3ae2cb612 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -82,6 +82,7 @@ SVN Revision: </p>
<ul>
<li>Added <kbd>form_multiselect()</kbd> to the <a href="helpers/form_helper.html">Form helper</a>.</li>
<li>Modified <kbd>form_hidden()</kbd> in the <a href="helpers/form_helper.html">Form helper</a> to accept multi-dimensional arrays.</li>
+ <li>Modified <kbd>directory_map()</kbd> in the <a href="helpers/directory_helper.html">Directory helper</a> to allow the inclusion of hidden files.</li>
</ul>
</li>
</ul>
diff --git a/user_guide/helpers/directory_helper.html b/user_guide/helpers/directory_helper.html
index 898b5ac0b..5ebb816f6 100644
--- a/user_guide/helpers/directory_helper.html
+++ b/user_guide/helpers/directory_helper.html
@@ -78,13 +78,16 @@ and builds an array representation of it and all its contained files. Example:</
<p class="important"><strong>Note:</strong> Paths are almost always relative to your main index.php file.</p>
-
-
<p>Sub-folders contained within the directory will be mapped as well. If you wish to map
only the top level directory set the second parameter to <var>true</var> (boolean):</p>
<code>$map = directory_map('./mydirectory/', TRUE);</code>
+<p>By default, hidden files will not be included in the returned array. To override this behavior,
+you may set a third parameter to <var>true</var> (boolean):</p>
+
+<code>$map = directory_map('./mydirectory/', FALSE, TRUE);</code>
+
<p>Each folder name will be an array index, while its contained files will be numerically indexed.
Here is an example of a typical array:</p>