Thanks a lot, I must be blind :-) On Dec 6, 6:22 pm, "Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]> wrote: > > Is there something already in cake that would retrieve the list of > > controllers present in an application ? Of course I can check for the > > files into the controller directory but if something is already there, > > I'd rather use it.This is a global function you can use anywhere in your > > application... > > /** > * Returns an array of filenames of PHP files in given directory. > * > * @param string $path Path to scan for files > * @return array List of files in directory > */ > function listClasses($path) > > -- > /** > * @author Larry E. Masters > * @var string $userName > * @param string $realName > * @returns string aka PhpNut > * @access public > */
--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
