pprins/CI_ListControllers — pull request #1 by man4mac (2013-04-20 02:49:32+00:00)
Title: Consistency Checks

Great library!

I was getting a foreach loop error, and the HTML from the default index.html in the controller directory (the "directory access not allowed" index file) was actually being pulled directly into a document when using the library. I just added a couple checks, one for filetype to ensure the files being checked for methods were indeed php files, and then a basic is_array() check before the foreach loop, which was spitting up some errors on files that didn't have methods (like the index.html file).

Thanks for writing this though, definitely going to be useful!