Prado\Security\TAuthManager::setLoginPage PHP Метод

setLoginPage() публичный Метод

Login page should be specified in the format of page path.
См. также: TPageService
public setLoginPage ( $pagePath )
    public function setLoginPage($pagePath)
    {
        $this->_loginPage = $pagePath;
    }

Usage Example

Пример #1
0
 public function testDoAuthentication()
 {
     throw new PHPUnit_Framework_IncompleteTestError();
     // Not yet finished, Session won't start because of headers :( :(
     $authManager = new TAuthManager();
     $authManager->setUserManager('users');
     $authManager->init(null);
     $authManager->setLoginPage('LoginPage');
     self::$app->raiseEvent('onAuthentication', self::$app, null);
 }