|
|
|
@ -31,7 +31,7 @@ class Generator extends \yii\gii\Generator
|
|
|
|
|
/** |
|
|
|
|
* @var string the namespace of the controller class |
|
|
|
|
*/ |
|
|
|
|
public $ns = 'app\controllers'; |
|
|
|
|
public $ns; |
|
|
|
|
/** |
|
|
|
|
* @var string list of action IDs separated by commas or spaces |
|
|
|
|
*/ |
|
|
|
@ -40,6 +40,15 @@ class Generator extends \yii\gii\Generator
|
|
|
|
|
/** |
|
|
|
|
* @inheritdoc |
|
|
|
|
*/ |
|
|
|
|
public function init() |
|
|
|
|
{ |
|
|
|
|
parent::init(); |
|
|
|
|
$this->ns = \Yii::$app->controllerNamespace; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @inheritdoc |
|
|
|
|
*/ |
|
|
|
|
public function getName() |
|
|
|
|
{ |
|
|
|
|
return 'Controller Generator'; |
|
|
|
|