diff options
| author | xue <> | 2005-12-10 02:02:10 +0000 | 
|---|---|---|
| committer | xue <> | 2005-12-10 02:02:10 +0000 | 
| commit | 1f1f96b7e143973e7da69fc01ebd6721f62e291c (patch) | |
| tree | 342915f87c904d8a79a853101ad9d176051a588b /framework/Web/UI/WebControls/TContent.php | |
| parent | 662547dc4c6c493c1c89f888e3ef73667ea783c4 (diff) | |
Diffstat (limited to 'framework/Web/UI/WebControls/TContent.php')
| -rw-r--r-- | framework/Web/UI/WebControls/TContent.php | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TContent.php b/framework/Web/UI/WebControls/TContent.php index 20cd1dc5..d02d3b4d 100644 --- a/framework/Web/UI/WebControls/TContent.php +++ b/framework/Web/UI/WebControls/TContent.php @@ -39,6 +39,8 @@ class TContent extends TControl implements INamingContainer  	 */
  	public function createdOnTemplate($parent)
  	{
 +		if(($id=$this->getID())==='')
 +			throw new TConfigurationException('content_id_required');
  		$this->getTemplateControl()->registerContent($this);
  		parent::createdOnTemplate($parent);
  	}
  | 
