yii2 redirect in controller action does not work?

The Solution to yii2 redirect in controller action does not work? is


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 $this->redirect(['user/index']);

~ Answered on 2014-05-28 14:38:55


Most Viewed Questions: