改名
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user