Commit d836654a by Qiang Xue

Fixes #704.

parent 6b41d41f
...@@ -129,7 +129,7 @@ class HelpController extends Controller ...@@ -129,7 +129,7 @@ class HelpController extends Controller
$files = scandir($module->getControllerPath()); $files = scandir($module->getControllerPath());
foreach ($files as $file) { foreach ($files as $file) {
if (strcmp(substr($file, -14), 'Controller.php') === 0) { if (strcmp(substr($file, -14), 'Controller.php') === 0) {
$commands[] = $prefix . lcfirst(substr(basename($file), 0, -14)); $commands[] = $prefix . Inflector::camel2id(substr(basename($file), 0, -14));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment