From 51694d32a1b85a02809f55e1f406c98ba755b4bf Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 24 Jan 2006 02:55:55 +0000 Subject: Make quickstart demos disable theme if under FT situation. --- demos/quickstart/protected/controls/SampleLayout.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'demos/quickstart/protected/controls/SampleLayout.php') 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; -- cgit v1.2.3