summaryrefslogtreecommitdiff
path: root/demos/controls/protected/pages/HomePage.php
diff options
context:
space:
mode:
authorxue <>2005-11-14 00:28:57 +0000
committerxue <>2005-11-14 00:28:57 +0000
commit0253a0bfca988f81fdec4fb29e1a1d4137a0c480 (patch)
tree6d2db642e68703828235f082f05ef8743917b96c /demos/controls/protected/pages/HomePage.php
parent5e101fe8e4fd3ab0a486faecc26025085e416ca6 (diff)
Added theme demo.
Diffstat (limited to 'demos/controls/protected/pages/HomePage.php')
-rw-r--r--demos/controls/protected/pages/HomePage.php7
1 files changed, 7 insertions, 0 deletions
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==='')