Back to blog

List all controllers in Cakephp 2


I needed to list all the Controllers of an Cakephp 2 application. I searched the webz and found an old article that got me started. The original article with code is here: http://cakebaker.42dh.com/2006/07/21/how-to-list-all-controllers/. Here is the (rewritten) code for a CakePHP 2 Component: