Use the following library to list all Controllers and methods of a Codeigniter application. You could use it for information about your application or to protect controllers and methods with an ACL plugin for example.
Get it at Github repository!
Get it at Github repository!
Copy the file to your application/library directory and you’re ready to use it in any of your controllers.
Usage:
//
// a Controller
//
function showList() {
$this->load->library('controllerlist'); // Load the library
print_r($this->controllerlist->getControllers());
}
Call the controller for example:
mydevelopment.local/controller/showList
It will show you an array of controllers and their methods.
0 comments:
Post a Comment