From 2067d1a727e7eb5e5ffb40e967f3d1fc4c8a41b2 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Thu, 13 Nov 2008 22:59:24 +0000 Subject: Changing EOL style to LF --- user_guide/helpers/directory_helper.html | 278 +++++++++++++++---------------- 1 file changed, 139 insertions(+), 139 deletions(-) (limited to 'user_guide/helpers/directory_helper.html') diff --git a/user_guide/helpers/directory_helper.html b/user_guide/helpers/directory_helper.html index cbd743e34..5263bc6ce 100644 --- a/user_guide/helpers/directory_helper.html +++ b/user_guide/helpers/directory_helper.html @@ -1,140 +1,140 @@ - - - - - -Directory Helper : CodeIgniter User Guide - - - - - - - - - - - - - - - - - - - - - -
- - - - - -

CodeIgniter User Guide Version 1.7

-
- - - - - - - - - - -
- - -
- - - -
- - -

Directory Helper

- -

The Directory Helper file contains functions that assist in working with directories.

- - -

Loading this Helper

- -

This helper is loaded using the following code:

-$this->load->helper('directory'); - -

The following functions are available:

- -

directory_map('source directory')

- -

This function reads the directory path specified in the first parameter -and builds an array representation of it and all its contained files. Example:

- -$map = directory_map('./mydirectory/'); - -

Note: Paths are almost always relative to your main index.php file.

- - - -

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 true (boolean):

- -$map = directory_map('./mydirectory/', TRUE); - -

Each folder name will be an array index, while its contained files will be numerically indexed. -Here is an example of a typical array:

- -Array
-(
-   [libraries] => Array
-   (
-       [0] => benchmark.html
-       [1] => config.html
-       [database] => Array
-       (
-             [0] => active_record.html
-             [1] => binds.html
-             [2] => configuration.html
-             [3] => connecting.html
-             [4] => examples.html
-             [5] => fields.html
-             [6] => index.html
-             [7] => queries.html
-        )
-       [2] => email.html
-       [3] => file_uploading.html
-       [4] => image_lib.html
-       [5] => input.html
-       [6] => language.html
-       [7] => loader.html
-       [8] => pagination.html
-       [9] => uri.html
-)
- - - - - - - -
- - - - - - + + + + + +Directory Helper : CodeIgniter User Guide + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +

CodeIgniter User Guide Version 1.7

+
+ + + + + + + + + + +
+ + +
+ + + +
+ + +

Directory Helper

+ +

The Directory Helper file contains functions that assist in working with directories.

+ + +

Loading this Helper

+ +

This helper is loaded using the following code:

+$this->load->helper('directory'); + +

The following functions are available:

+ +

directory_map('source directory')

+ +

This function reads the directory path specified in the first parameter +and builds an array representation of it and all its contained files. Example:

+ +$map = directory_map('./mydirectory/'); + +

Note: Paths are almost always relative to your main index.php file.

+ + + +

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 true (boolean):

+ +$map = directory_map('./mydirectory/', TRUE); + +

Each folder name will be an array index, while its contained files will be numerically indexed. +Here is an example of a typical array:

+ +Array
+(
+   [libraries] => Array
+   (
+       [0] => benchmark.html
+       [1] => config.html
+       [database] => Array
+       (
+             [0] => active_record.html
+             [1] => binds.html
+             [2] => configuration.html
+             [3] => connecting.html
+             [4] => examples.html
+             [5] => fields.html
+             [6] => index.html
+             [7] => queries.html
+        )
+       [2] => email.html
+       [3] => file_uploading.html
+       [4] => image_lib.html
+       [5] => input.html
+       [6] => language.html
+       [7] => loader.html
+       [8] => pagination.html
+       [9] => uri.html
+)
+ + + + + + + +
+ + + + + + \ No newline at end of file -- cgit v1.2.3-24-g4f1b