diff options
author | xue <> | 2006-03-25 14:30:36 +0000 |
---|---|---|
committer | xue <> | 2006-03-25 14:30:36 +0000 |
commit | 686805ddf0f760e2c30ff8aa02994daf9fd386fa (patch) | |
tree | a412afb65ae299b633c5f940e61f334c7e9a9a60 | |
parent | de4e0fc293b8f5a9d009cf40018bba88d9416b41 (diff) |
An exception will be raised if a TContent cannot find a matching TContentPlaceHolder.
-rw-r--r-- | framework/Web/UI/TTemplateControl.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/Web/UI/TTemplateControl.php b/framework/Web/UI/TTemplateControl.php index ef90f0a3..2f63ae5e 100644 --- a/framework/Web/UI/TTemplateControl.php +++ b/framework/Web/UI/TTemplateControl.php @@ -204,6 +204,8 @@ class TTemplateControl extends TControl implements INamingContainer $loc=$controls->remove($placeholder);
$controls->insertAt($loc,$content);
}
+ else
+ throw new TConfigurationException('templatecontrol_placeholder_inexistent',$id);
}
/**
|