Felix Geisendorfer has
posted a quick code snippet for the CakePHP framework that returns an array of the controller names in your application.
It's something I've heard people asking for in IRC quite some times by now and since I just needed it again I thought I might as well publish it here. I hope somebody out there finds it useful.
The code uses a Folder instance to grab all of the controller paths and push them into a $controllers array.
Felix Geisendorfer's Blog: Quick dessert: List all controllers of a CakePHP application - Read More...