From 0253a0bfca988f81fdec4fb29e1a1d4137a0c480 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 14 Nov 2005 00:28:57 +0000 Subject: Added theme demo. --- demos/controls/protected/pages/HomePage.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'demos/controls/protected/pages/HomePage.php') diff --git a/demos/controls/protected/pages/HomePage.php b/demos/controls/protected/pages/HomePage.php index 4cfc3b0a..6c69e44b 100644 --- a/demos/controls/protected/pages/HomePage.php +++ b/demos/controls/protected/pages/HomePage.php @@ -2,6 +2,13 @@ class HomePage extends TPage { + public function onPreInit($param) + { + parent::onPreInit($param); + if(!$this->getUser()->getIsGuest()) + $this->setTheme(''); + } + public function testClick($sender,$param) { if($sender->BackColor==='') -- cgit v1.2.3