Setting unknown property: yii\console\Request::homeUrl

Hi, i need to render using smarty template in a yiic console file.

I have this code:


namespace app\commands;

use yii;

use yii\console\Controller;

use app\components\SqsComponent;

class TriggerEmailController extends Controller



     * This command echoes what you have entered as the message.

     * @param string $message the message to be echoed.


    public function actionIndex()


        $htmlRender = $this->render('renderer.tpl', ['username' => 'Alex']);

        echo $htmlRender;


    public function getViewPath() {

        return Yii::getAlias('@app/mail/layouts');




Exception 'yii\base\UnknownPropertyException' with message 'Setting unknown property: yii\console\Request::homeUrl'

in /vagrant/m-be-v3/vendor/yiisoft/yii2/base/Component.php:197

Stack trace: