web\Response refresh()

refresh() public method

Refreshes the current page.

The effect of this method call is the same as the user pressing the refresh button of his browser (without re-posting data).

In a controller action you may use this method like this:

return Yii::$app->getResponse()->refresh();
public yii\web\Response refresh ( $anchor = '' )
$anchor string

The anchor that should be appended to the redirection URL. Defaults to empty. Make sure the anchor starts with '#' if you want to specify it.

return yii\web\Response

The response object itself

doc_Yii
2016-10-30 17:16:22
Comments
Leave a Comment

Please login to continue.