summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
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)