I am loging out user through following code. This is my view code behind logout button:
\"&g
u can change the view code and echo instead of
Log out
this one:
= Html::a('', ['/site/logout'], ['class'=>'btn btn-default btn-flat']), //optional* -if you need to add style ['data' => ['method' => 'post',]]) ?>