From 4b49a31f574c336ffe516b2d55cf1aec59376bf9 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Fri, 8 Nov 2013 21:14:03 -0500 Subject: [PATCH] minor fix to gii --- extensions/gii/generators/crud/templates/controller.php | 1 - extensions/gii/generators/model/Generator.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/gii/generators/crud/templates/controller.php b/extensions/gii/generators/crud/templates/controller.php index 918f840..f975fd1 100644 --- a/extensions/gii/generators/crud/templates/controller.php +++ b/extensions/gii/generators/crud/templates/controller.php @@ -28,7 +28,6 @@ namespace controllerClass, '\\')) ?> use modelClass, '\\') ?>; use searchModelClass, '\\') ?> as ; -use yii\data\ActiveDataProvider; use baseControllerClass, '\\') ?>; use yii\web\HttpException; use yii\web\VerbFilter; diff --git a/extensions/gii/generators/model/Generator.php b/extensions/gii/generators/model/Generator.php index 4f628d7..78c5130 100644 --- a/extensions/gii/generators/model/Generator.php +++ b/extensions/gii/generators/model/Generator.php @@ -104,7 +104,7 @@ class Generator extends \yii\gii\Generator 'baseClass' => 'This is the base class of the new ActiveRecord class. It should be a fully qualified namespaced class name.', 'generateRelations' => 'This indicates whether the generator should generate relations based on foreign key constraints it detects in the database. Note that if your database contains too many tables, - you may want to uncheck this option to accelerate the code generation proc ess.', + you may want to uncheck this option to accelerate the code generation process.', 'generateLabelsFromComments' => 'This indicates whether the generator should generate attribute labels by using the comments of the corresponding DB columns.', ];