Browse Source

Fixes #704.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
d836654af9
  1. 2
      framework/yii/console/controllers/HelpController.php

2
framework/yii/console/controllers/HelpController.php

@ -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));
} }
} }

Loading…
Cancel
Save