Atkati,
You'll find that avoiding Cake methods & variables means you write
longer files ;)
To repeat what Sam D has already written using your own variable names
etc. Your script would look something like this:
uses('Folder');
$folder = new Folder (VENDORS);
$files = $folder->ls();
pr ($files[1]); //Reterns a 2D array, 0 is Dirs 1 is files.
Should you need a recursive listing, $folder->findRecursive() is pretty
useful.
Points of reference:
http://api.cakephp.org/class_folder.html#1e48cd2cad566f031f81aca2854b7514
http://www.cakephp.org/search/index/folder
Cheers,
AD7six
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---