Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

yii2 modules commands are not showing in console

#Do this in bootstrap file of your module, you just have to register the consoleControllerNamespace

    public function bootstrap($app)
    {
        if ($app instanceof yiiconsoleApplication) {
            $app->getModule('test')->controllerNamespace = 'mymodules	estconsole';
        }
    }
Source by forum.yiiframework.com #
 
PREVIOUS NEXT
Tagged: #modules #commands #showing #console
ADD COMMENT
Topic
Name
1+6 =