Yii2: Method Not Allowed (#405) while logout user

前端 未结 7 1003
无人及你
无人及你 2020-12-16 03:02

I am loging out user through following code. This is my view code behind logout button:

  • \"&g
  • 7条回答
    •  天涯浪人
      2020-12-16 03:04

      this code is working for AdminLTE template.

      ['label' => 'Sign out (' . Yii::$app->user->identity->username . ')','url' => ['/site/logout'],'template' => '{label}',],
      

    提交回复
    热议问题