Commit 797b0430 by Qiang Xue

Added missing using statement in Gii.

parent 5648be8f
......@@ -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" : "") ?>;
......
......@@ -17,6 +17,8 @@ echo "<?php\n";
namespace <?= $generator->ns ?>;
use Yii;
/**
* This is the model class for table "<?= $tableName ?>".
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment