web\User $loginUrl

$loginUrl public property

The URL for login when loginRequired() is called. If an array is given, yii\web\UrlManager::createUrl() will be called to create the corresponding URL. The first element of the array should be the route to the login action, and the rest of the name-value pairs are GET parameters used to construct the login URL. For example,

['site/login', 'ref' => 1]

If this property is null, a 403 HTTP exception will be raised when loginRequired() is called.

public string|array $loginUrl = ['site/login']
doc_Yii
2016-10-30 17:17:17
Comments
Leave a Comment

Please login to continue.