我使用 CHTML::link() 创建链接,但它似乎不适用于绝对 URL
我的代码:
<?php echo CHtml::link(CHtml::image(Yii::app()->baseUrl.'/images/image.png'), array('/http://www.newsite.com/about/'));?>
该链接返回站点 baseUrl,因此它看起来像这样
http://currentsitecom/http://www.newsite.com/about/
谁能建议为什么这不起作用?