<?php namespace backend\modules\task; /** * task module definition class */ class Task extends \yii\base\Module { /** * {@inheritdoc} */ public $controllerNamespace = 'backend\modules\task\controllers'; /** * {@inheritdoc} */ public function init() { parent::init(); // custom initialization code goes here } }