Tutorialsplane

Directory Helper


Directory Helper : Codeigniter provides this helper(directory) which is used to work with directories. Here in this tutorial we are going to explain this helper.


Directory Helper

Load Helper

You can load directory helper simply as below –

Codeigniter Directory Helper Example:

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

Functions

Following functions are available in this helper –

directory_map Function

directory_map Function Syntax:

directory_map($source_dir, $directory_depth = 0, $hidden = FALSE);

Parameters:

The above functions gives the array of files in a directory.

Models

Connect Database

Helpers

Libraries

Helper Reference

Library Reference

Database Reference