summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TTemplateControl.php
diff options
context:
space:
mode:
authorxue <>2006-08-09 12:42:06 +0000
committerxue <>2006-08-09 12:42:06 +0000
commit2151151bb43f5c4151d293da8fe4d1806e8842b4 (patch)
tree39466ee3a94a474033ce476444419a4446e6ae2b /framework/Web/UI/TTemplateControl.php
parent7012130a7c98d602f3408d04c620a69055607781 (diff)
Added error information when content control doesn't specify a master control.
Diffstat (limited to 'framework/Web/UI/TTemplateControl.php')
-rw-r--r--framework/Web/UI/TTemplateControl.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/Web/UI/TTemplateControl.php b/framework/Web/UI/TTemplateControl.php
index 3bbe52c5..7d1f2d7e 100644
--- a/framework/Web/UI/TTemplateControl.php
+++ b/framework/Web/UI/TTemplateControl.php
@@ -235,6 +235,8 @@ class TTemplateControl extends TCompositeControl
foreach($this->_contents as $id=>$content)
$master->injectContent($id,$content);
}
+ else if(!empty($this->_contents))
+ throw new TConfigurationException('templatecontrol_mastercontrol_required',get_class($this));
parent::initRecursive($namingContainer);
}
}