We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How to list the controllers and views created?

How to list the controllers and views created?



43.9k

Hi,

you can use php directory iterator https://php.net/manual/en/class.directoryiterator.php wich offers plenty of nice method. and build the list the way you want. Maybe a bit complicated if you're having plenty of modules, but quiet simple for scanning a basic mvc application controller directory...