public function getControllerList($plugin = null, $prefix = null)
{
if (!$plugin) {
$path = App::path('Controller' . (empty($prefix) ? '' : DS . Inflector::camelize($prefix)));
$dir = new Folder($path[0]);
$controllers = $dir->find('.*Controller\\.php');
} else {
$path = App::path('Controller' . (empty($prefix) ? '' : DS . Inflector::camelize($prefix)), $plugin);
$dir = new Folder($path[0]);
$controllers = $dir->find('.*Controller\\.php');
}
return $controllers;
}