SyntaxFix
Write A Post
Hire A Developer
Questions
In Yii2 we need to return() the result from the action.I think you need to add a return in front of your redirect.
return()
return
return $this->redirect(['user/index']);