diff --git a/Gii/GiiController.php b/Gii/GiiController.php index 8e784db6..c4f8d9f8 100644 --- a/Gii/GiiController.php +++ b/Gii/GiiController.php @@ -43,7 +43,7 @@ class GiiController extends GiiBase $managerName = str_replace(ucfirst($prefix), '', $managerName); $class = ''; - $controller = str_replace('\\\\','\\',"$namespace\\{$managerName}Controller"); + $controller = str_replace('\\\\', '\\', "$namespace\\{$managerName}Controller"); $html = "getClassProperty($class); - $html .= $this->getClassMethods($class); + $html .= $this->getClassMethods($class, $default); } if (!$this->input->get('--controller-empty', false)) { - $default = ['actionLoadParam', 'actionAdd', 'actionUpdate', 'actionDetail', 'actionDelete', 'actionBatchDelete', 'actionList']; - foreach ($default as $key => $val) { if (in_array($val, $funcNames)) continue; $html .= $this->{'controllerMethod' . str_replace('action', '', $val)}($this->fields, $managerName, $managerName) . "\n";