Reputation: 307
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
Please help me with this issue.
Upvotes: 1
Views: 260
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