namespace app\modules\forum;

class Module extends \yii\base\Module
{
public $controllerNamespace = 'app\modules\forum\controllers';

public function init()
{
    parent::init();
    Yii::configure($this, require(__DIR__ . '/config.php'));
    // custom initialization code goes here
}
}

this is my module class

and

'modules' => [
    'gii' => 'yii\gii\Module',



    'forum' => [
        'class' => 'app\modules\forum\Module',
    ],

    'test' => [
        'class' => 'app\test\Module',
    ],
],

this is console.php in config , I am using basic of yii2

0

There are 0 answers