src/controllers/WebController.php
public function redirect ($url, $statusCode = 302)
		{
			parent::redirect($url, $statusCode);
			Yii::$app->end();
		}
public function redirect ($url, $statusCode = 302)
		{
			parent::redirect($url, $statusCode);
			Yii::$app->end();
		}
public function redirect ( $ url , $ statusCode = 302 ) { parent :: redirect ( $ url , $ statusCode ) ; Yii :: $ app -> end ( ) ; }
Redirects and ends app. That prevents from sending additional headers.

@inheritdoc
Redirects and ends app . That prevents from sending additional headers .