Ildar Nasurlaev
Ildar Nasurlaev

Reputation: 307

yii2 starter kit console commands doesn't work

I have yii2 starter kit application and I am trying to run console commands but they're not working. For example I am staying in console folder and run command php yii migrate/up(or any other commands none of them run) but I see only this

enter image description here enter image description here

Please help me with this issue.

Upvotes: 1

Views: 260

Answers (1)

Ildar Nasurlaev
Ildar Nasurlaev

Reputation: 307

I found a solution for this issue, a programmer before me, added this code below to common/config/base.php

    'request' => [
        'class' => 'common\components\lang\LangRequest',
    ],

I have moved this class to request section in frontend/config/web.php. And remove request section from common/config/base.php. Now console commands working perfectly.

Upvotes: 1

Related Questions