From c5ee83bffb054d44e3b6866900ee2d396c888076 Mon Sep 17 00:00:00 2001 From: KiTE Date: Wed, 13 Nov 2013 23:54:27 +0200 Subject: [PATCH] Fixed gii after merge #1184 --- extensions/gii/generators/crud/Generator.php | 2 +- extensions/gii/generators/model/Generator.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/gii/generators/crud/Generator.php b/extensions/gii/generators/crud/Generator.php index 8ea1ff6..1925de2 100644 --- a/extensions/gii/generators/crud/Generator.php +++ b/extensions/gii/generators/crud/Generator.php @@ -278,7 +278,7 @@ class Generator extends \yii\gii\Generator $rules = []; foreach ($types as $type => $columns) { - $rules[] = "['" . implode(', ', $columns) . "', '$type']"; + $rules[] = "[['" . implode("', '", $columns) . "'], '$type']"; } return $rules; diff --git a/extensions/gii/generators/model/Generator.php b/extensions/gii/generators/model/Generator.php index 976fde8..32ba2e5 100644 --- a/extensions/gii/generators/model/Generator.php +++ b/extensions/gii/generators/model/Generator.php @@ -237,10 +237,10 @@ class Generator extends \yii\gii\Generator $rules = []; foreach ($types as $type => $columns) { - $rules[] = "[['" . implode(', ', $columns) . "'], '$type']"; + $rules[] = "[['" . implode("', '", $columns) . "'], '$type']"; } foreach ($lengths as $length => $columns) { - $rules[] = "[['" . implode(', ', $columns) . "'], 'string', 'max' => $length]"; + $rules[] = "[['" . implode("', '", $columns) . "'], 'string', 'max' => $length]"; } return $rules;