Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Directory

sjlu edited this page May 29, 2012 · 1 revision

The Directory Helper extends the current CodeIgniter Directory helper, this is auto-loaded. http://codeigniter.com/user_guide/helpers/directory_helper.html

dir2list($dir)

dir2list gives your a directory as a list element, auto-languaging files into a nice title including the directory name. For example, if you create a directory named some_directory, it will be renamed to Some Directory for you to use. This function is not recursive. This is formatted as array(title => "Some Directory", path => "some_directory").

Clone this wiki locally