From d833d2766f28f927cb4e1e8e660771361abdfdf9 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 17 Nov 2005 19:21:21 +0000 Subject: added application mode support. --- demos/controls/protected/application.xml | 4 +--- demos/controls/protected/pages/HomePage.php | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'demos/controls/protected') diff --git a/demos/controls/protected/application.xml b/demos/controls/protected/application.xml index 2cfc14d9..856ae087 100644 --- a/demos/controls/protected/application.xml +++ b/demos/controls/protected/application.xml @@ -1,15 +1,13 @@ - + - diff --git a/demos/controls/protected/pages/HomePage.php b/demos/controls/protected/pages/HomePage.php index 6c69e44b..7339f364 100644 --- a/demos/controls/protected/pages/HomePage.php +++ b/demos/controls/protected/pages/HomePage.php @@ -5,8 +5,8 @@ class HomePage extends TPage public function onPreInit($param) { parent::onPreInit($param); - if(!$this->getUser()->getIsGuest()) - $this->setTheme(''); + if(!$this->User->IsGuest) + $this->Theme=''; } public function testClick($sender,$param) -- cgit v1.2.3