web\User checkRedirectAcceptable()

checkRedirectAcceptable() protected method (available since version 2.0.8)

Checks if the Accept header contains a content type that allows redirection to the login page.

The login page is assumed to serve text/html or application/xhtml+xml by default. You can change acceptable content types by modifying $acceptableRedirectTypes property.

See also $acceptableRedirectTypes.

protected boolean checkRedirectAcceptable ( )
return boolean

Whether this request may be redirected to the login page.

doc_Yii
2016-10-30 17:17:20
Comments
Leave a Comment

Please login to continue.