我正在尝试将用户链接到新网站的图像,例如facebook.com。到目前为止,这是我得到的。将图像链接到Facebook或Yii的另一个网站
$imghtml=CHtml::image('images/imageSlider/397498913','Test');
echo CHtml::link($imghtml, $this->createAbsoluteUrl('https://www.facebook.com/'));
这确实在网站上显示的图像,但链接是错误的,当我点击这个我去以下链接。 http://localhost:63342/France2014/index.php?r=https://www.facebook.com
。
我该如何将它链接到facebook?
对不起后期重播,是的,谢谢你,修复了我,谢谢你的帮助。 – Steve 2014-09-29 12:28:52