summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorxue <>2005-11-17 19:21:21 +0000
committerxue <>2005-11-17 19:21:21 +0000
commitd833d2766f28f927cb4e1e8e660771361abdfdf9 (patch)
treef64d674c8e1ce25bdb712efb64fdf5557db9e550 /demos
parentaa2edcf52ee7438876d826283274bf7e271fad4a (diff)
added application mode support.
Diffstat (limited to 'demos')
-rw-r--r--demos/controls/protected/application.xml4
-rw-r--r--demos/controls/protected/pages/HomePage.php4
2 files changed, 3 insertions, 5 deletions
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 @@
<?xml version="1.0" encoding="utf-8"?>
-<configuration id="controls">
+<configuration id="controls" mode="Debug">
<paths>
<alias id="Demo" path="." />
<alias id="Pages" path="pages" />
</paths>
<!-- modules configured and loaded for all services -->
<modules>
- <!-- make sure the path "protected" is writable by web server process if you enable this cache
<module id="cache" type="System.Data.TSqliteCache" DbFile="Demo.cache"/>
- -->
<module id="session" type="THttpSession" />
</modules>
<services>
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)