04-14-2011, 02:08 PM
[eluser]leonbloy[/eluser]
The API of this helper seems badly designed to me:
http://ellislab.com/codeigniter/user-gui...elper.html
function:
Bad way of representing a directory tree: What if I have a directory name that happens to be a number?
It must break.... and yes, it breaks. Badly.
Case 1: tree
returns
Case 2: Tree:
returns:
The API of this helper seems badly designed to me:
http://ellislab.com/codeigniter/user-gui...elper.html
Code:
directory_map
Quote:Each folder name will be an array index, while its contained files will be numerically indexed.
Bad way of representing a directory tree: What if I have a directory name that happens to be a number?
It must break.... and yes, it breaks. Badly.
Case 1: tree
Code:
dummy.zip
0 -
assda
returns
Code:
Array
(
[0] => dummy.zip
)
Case 2: Tree:
Code:
dummy.zip
3 -
assda
returns:
Code:
Array
(
[3] => Array
(
[0] => asdas
)
[4] => dummy.zip
)