This commit is contained in:
2020-09-14 17:44:37 +08:00
parent c801867247
commit dcf97f1a08
+2 -2
View File
@@ -130,10 +130,10 @@ class Gii
foreach ($tables as $key => $val) {
$data = $this->createModelFile($key, $val);
if ($controller == 1) {
$fileList[] = $this->generateModel($data);
$fileList[] = $this->generateController($data);
}
if ($model == 1) {
$fileList[] = $this->generateController($data);
$fileList[] = $this->generateModel($data);
}
}
return $fileList;