From 39e736332e3606d1c60d07dab2a8b42833d5d610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 8 Sep 2020 16:08:22 +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/Gii.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Gii/Gii.php b/Gii/Gii.php index 4ecf424b..bdea9bac 100644 --- a/Gii/Gii.php +++ b/Gii/Gii.php @@ -72,22 +72,22 @@ class Gii $model = 1; } if ($input->get('controller', NULL)) { - $c = 1; + $controller = 1; } if ($input->get('isUpdate') == 1) { $this->isUpdate = TRUE; } - return $this->getTable($c, $model); + return $this->getTable($controller, $model); } /** - * @param $m - * @param $c + * @param $controller + * @param $model * @return array * * @throws Exception */ - private function getTable(&$c, &$m) + private function getTable(&$controller, &$model) { $tables = $this->getFields($this->getTables()); if (empty($tables)) { @@ -97,10 +97,10 @@ class Gii $fileList = []; foreach ($tables as $key => $val) { $data = $this->createModelFile($key, $val); - if ($m == 1) { + if ($controller == 1) { $fileList[] = $this->generateModel($data); } - if ($c == 1) { + if ($model == 1) { $fileList[] = $this->generateController($data); } }