Added missing using statement in Gii.

This commit is contained in:
Qiang Xue
2014-03-24 08:28:22 -04:00
parent 5648be8f11
commit 797b0430b9
2 changed files with 3 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ echo "<?php\n";
namespace <?= StringHelper::dirname(ltrim($generator->searchModelClass, '\\')) ?>;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use <?= ltrim($generator->modelClass, '\\') . (isset($modelAlias) ? " as $modelAlias" : "") ?>;

View File

@@ -17,6 +17,8 @@ echo "<?php\n";
namespace <?= $generator->ns ?>;
use Yii;
/**
* This is the model class for table "<?= $tableName ?>".
*