title: I have created a module using gii in yii2 , declared that in yii console.php in config , still can't access by index.php/moduleid
body: <p>
  
  <pre><code>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
  }
  }
  </code></pre>
  
  <p>this is my module class </p>
  
  <p>and </p>
  
  <pre><code>'modules' =&gt; [
      'gii' =&gt; 'yii\gii\Module',
  
  
  
      'forum' =&gt; [
          'class' =&gt; 'app\modules\forum\Module',
      ],
  
      'test' =&gt; [
          'class' =&gt; 'app\test\Module',
      ],
  ],
  </code></pre>
  
  <p>this is console.php in config , I am using basic of yii2</p>