web\Controller refresh()

refresh() public method

Refreshes the current page.

This method is a shortcut to yii\web\Response::refresh().

You can use it in an action by returning the yii\web\Response directly:

// stop executing this action and refresh the current page
return $this->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:14:46
Comments
Leave a Comment

Please login to continue.