From 138dbc23381a82eaf17a2685cc3bdb54ad8b7f51 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 20 Jan 2006 04:20:39 +0000 Subject: Added TImage and THyperLink demos. --- framework/Web/UI/WebControls/THyperLink.php | 2 +- framework/Web/UI/WebControls/TImage.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI/WebControls') diff --git a/framework/Web/UI/WebControls/THyperLink.php b/framework/Web/UI/WebControls/THyperLink.php index c47cc1c4..4992dfd3 100644 --- a/framework/Web/UI/WebControls/THyperLink.php +++ b/framework/Web/UI/WebControls/THyperLink.php @@ -72,7 +72,7 @@ class THyperLink extends TWebControl } else { - $image=new TImage; + $image=Prado::createComponent('System.Web.UI.WebControls.TImage'); $image->setImageUrl($imageUrl); if(($toolTip=$this->getToolTip())!=='') $image->setToolTip($toolTip); diff --git a/framework/Web/UI/WebControls/TImage.php b/framework/Web/UI/WebControls/TImage.php index 3f7b8f49..fa5f406f 100644 --- a/framework/Web/UI/WebControls/TImage.php +++ b/framework/Web/UI/WebControls/TImage.php @@ -17,7 +17,7 @@ * {@link setImageUrl ImageUrl} property which takes a relative or absolute * URL to the image file. The alignment of the image displayed is set by * the {@link setImageAlign ImageAlign} property. To set alternative texts - * or long description of the image, use {@link setAlternativeText AlternativeText} + * or long description of the image, use {@link setAlternateText AlternateText} * or {@link setDescriptionUrl DescriptionUrl} property, respectively. * * @author Qiang Xue -- cgit v1.2.3