i working on cake php. want develop generalized application in give in folder names. folders links of other application, on cake php. main objective app go inside controllers' folder , first list out controllers, , inside controller , read each inside function, , show them separate functions. used fread , file_get_content, not reading string returned file contents has text missing start. adding remove starting php tags controllers reads whole file thing in way controller wont work. having solution of please ?
you use folder
class cakephp core or directoryiterator
list of controllers. instead read content of files use reflectionclass
collect information classes. reflectionclass::getmethods()
can build methods list. consider public methods if desired making use of reflectionmethod::ispublic()
method.
depending on implementation you'll have load controller classes
Comments
Post a Comment