diff options
author | xue <> | 2006-01-24 02:55:55 +0000 |
---|---|---|
committer | xue <> | 2006-01-24 02:55:55 +0000 |
commit | 51694d32a1b85a02809f55e1f406c98ba755b4bf (patch) | |
tree | 5fc4658cb11c2a2fc36335166e0f1ff57f2df3b3 /demos/quickstart/protected/controls/SampleLayout.php | |
parent | c5f2fb2c77e7140277349d5b1f1a8f6017909dc6 (diff) |
Make quickstart demos disable theme if under FT situation.
Diffstat (limited to 'demos/quickstart/protected/controls/SampleLayout.php')
-rw-r--r-- | demos/quickstart/protected/controls/SampleLayout.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/demos/quickstart/protected/controls/SampleLayout.php b/demos/quickstart/protected/controls/SampleLayout.php index ee7f41ff..94b7ac74 100644 --- a/demos/quickstart/protected/controls/SampleLayout.php +++ b/demos/quickstart/protected/controls/SampleLayout.php @@ -2,6 +2,14 @@ class SampleLayout extends TTemplateControl
{
+
+ public function __construct()
+ {
+ if($this->Request->Items->contains('functionaltest'))
+ $this->Service->RequestedPage->EnableTheming=false;
+ parent::__construct();
+ }
+
public function toggleTopicPanel($sender,$param)
{
$this->TopicPanel->Visible=!$this->TopicPanel->Visible;
|