diff --git a/console/migrations/m160204_151615_cities.php b/console/migrations/m160204_151615_cities.php new file mode 100644 index 0000000..ad08d46 --- /dev/null +++ b/console/migrations/m160204_151615_cities.php @@ -0,0 +1,24 @@ +createTable('{{%cities}}', [ + 'id' => $this->primaryKey(), + 'name' => $this->string(255), + 'is_active' => $this->smallInteger(), + 'parent' => $this->integer() + ], $tableOptions); + + } + + public function down() + { + $this->dropTable('{{%cities}}'); + } +} diff --git a/frontend/views/site/registration.php b/frontend/views/site/registration.php index 4a8370f..daf311e 100644 --- a/frontend/views/site/registration.php +++ b/frontend/views/site/registration.php @@ -1,5 +1,9 @@ registerJsFile('@web/js/selectize.js'); +/** + * @var $user common\models\User + * @var $user_info common\models\UserInfo + */ + use yii\widgets\ActiveForm; ?>
@@ -7,10 +11,12 @@
Регистрация
-
+
+ field($model, 'username')?> +
- +
-- libgit2 0.21.4