Hi Symfony, To do what you have asked, you would need to write a function that would loop through each file in the controllers (or models, if easier/appropriate) folder, derive the controller name from the file name, create an instance of that controller and then retrieve the fields. There are some useful cake functions if you need to do this (see File and Folder methods in the API).
Do you want to do this upon every request, or just to setup? If it´s just for 'seeding' your empty permission system, assuming it is DB driven, why not add logic to create the relavent objects if they don´t exists (if DEBUG >0 for example) and then just browse the site, thus creating all your controller/action permutations? HTH, 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 -~----------~----~----~----~------~----~------~--~---
