If i use array in the first tag, the link is text array.
<a href="#"> <img src=""/><img src=""> </a>
example
Posted 10 April 2012 - 11:05 PM
Posted 11 April 2012 - 07:47 AM
Posted 12 April 2012 - 11:40 AM
Posted 12 April 2012 - 12:09 PM
rookie84, on 12 April 2012 - 11:40 AM, said:
$image1 = CHtml::image(Yii::app()->baseUrl.'/image1.png');
$image2 = CHtml::image(Yii::app()->baseUrl.'/image2.png');
echo CHtml::link($image1.$image2, array("class"=>"example",Yii::app()->baseUrl.'/example'));
Posted 12 April 2012 - 07:05 PM
link(string $text, mixed $url='#', array $htmlOptions=array ( ))
echo CHtml::link($image1.$image2,Yii::app()->baseUrl.'/example' , array("class"=>"example"));
Posted 13 April 2012 - 03:24 PM
xent, on 12 April 2012 - 07:05 PM, said:
link(string $text, mixed $url='#', array $htmlOptions=array ( ))
echo CHtml::link($image1.$image2,Yii::app()->baseUrl.'/example' , array("class"=>"example"));