From 8c11799aa0c5bd8a069052b364988b988c12b1b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 25 Mar 2021 19:57:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gii/GiiController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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";