I need to run a function to do some actions with each controller-name on my project. My function is defined on a controller like this:
foreach(glob(APPPATH . 'controllers/*' . 'php') as $controller){ $controller = basename($controller, '.php'); }