summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorxue <>2005-11-16 22:32:52 +0000
committerxue <>2005-11-16 22:32:52 +0000
commit6c1b05deafd9940da5d473800032558df90b118e (patch)
tree3435de08a595fab3ca71ed41f3a88cc9ab6e2995 /demos
parent65acec4f65ddefcb3e9f9762d958be0539f3f71a (diff)
Key modules are now using registered to application rather than using reserved module names.
Diffstat (limited to 'demos')
-rw-r--r--demos/controls/protected/pages/LoginPage.php2
-rw-r--r--demos/controls/protected/pages/private/MemberPage.php2
-rw-r--r--demos/personal/protected/Pages/LoginPage.php2
3 files changed, 3 insertions, 3 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'));
}
}
diff --git a/demos/personal/protected/Pages/LoginPage.php b/demos/personal/protected/Pages/LoginPage.php
index 3a3b8432..3b5cc3f9 100644
--- a/demos/personal/protected/Pages/LoginPage.php
+++ b/demos/personal/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