News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Felix Geisendorfer's Blog:
Quick dessert List all controllers of a CakePHP application
July 12, 2007 @ 10:15:00

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.

0 comments voice your opinion now!
controller cakephp application list controller cakephp application list


blog comments powered by Disqus

Similar Posts

Three Devs & A Maybe Podcast: Delving into CakePHP with James Watts

Symfony Blog: Make your symfony application 70% faster

Lukas Smith's Blog: PHP 5.3.0alpha3 is finally out

Ben Ramsey's Blog: Zend Framework View Notes

Internet Super Hero Blog: PHP: 120 tuning screws for mysqlnd


Community Events

Don't see your event here?
Let us know!


podcast interview api introduction community example series voicesoftheelephpant framework xdebug laravel release symfony2 extension opinion performance version library conference php7

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework