Yii2 - Custom Widget

echo \app\components\Mywidget::widget()

Welcome Guest!

echo \app\components\Mywidget::widget(['message' => 'Yii2.0'])

Welcome Yii2.0!