diff options
author | xue <> | 2005-11-16 22:32:52 +0000 |
---|---|---|
committer | xue <> | 2005-11-16 22:32:52 +0000 |
commit | 6c1b05deafd9940da5d473800032558df90b118e (patch) | |
tree | 3435de08a595fab3ca71ed41f3a88cc9ab6e2995 /demos/controls | |
parent | 65acec4f65ddefcb3e9f9762d958be0539f3f71a (diff) |
Key modules are now using registered to application rather than using reserved module names.
Diffstat (limited to 'demos/controls')
-rw-r--r-- | demos/controls/protected/pages/LoginPage.php | 2 | ||||
-rw-r--r-- | demos/controls/protected/pages/private/MemberPage.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/controls/protected/pages/LoginPage.php b/demos/controls/protected/pages/LoginPage.php index 3a3b8432..3b5cc3f9 100644 --- a/demos/controls/protected/pages/LoginPage.php +++ b/demos/controls/protected/pages/LoginPage.php @@ -4,7 +4,7 @@ class LoginPage extends TPage {
public function login($sender,$param)
{
- $manager=$this->Application->AuthManager;
+ $manager=$this->Application->getModule('auth');
if($manager->login($this->username->Text,$this->password->Text))
$this->Application->Response->redirect($this->Application->Request->Items['ReturnUrl']);
else
diff --git a/demos/controls/protected/pages/private/MemberPage.php b/demos/controls/protected/pages/private/MemberPage.php index 61fd113d..ecec9e4d 100644 --- a/demos/controls/protected/pages/private/MemberPage.php +++ b/demos/controls/protected/pages/private/MemberPage.php @@ -4,7 +4,7 @@ class MemberPage extends TPage {
public function logout($sender,$param)
{
- $this->Application->AuthManager->logout();
+ $this->Application->getModule('auth')->logout();
$this->Application->Response->redirect($this->Application->Service->constructUrl('home'));
}
}
|