need help setting homeLink property

hi,

can someone shed some light on how to override the default homeLink. Currently it is set to Home by Yii but I would like to change it. I have the following code in my main.php:


<?php $this->widget('zii.widgets.CBreadcrumbs', array(

		'links'=>$this->breadcrumbs,

	)); ?><!-- breadcrumbs -->

I tried to put homeLink but it does not work as anticipated. For example changing the above code to:


<?php $this->widget('zii.widgets.CBreadcrumbs', array(

                'homeLink'=>'opa',

		'links'=>$this->breadcrumbs,

	)); ?><!-- breadcrumbs -->

…generates a default homeLink ‘opa’ but is not a link and rather just plain text. I would like to be able to change it and still preserve the link functionality. Any help is appreciated.

cheers,

b

homeLink takes HTML code, i.e., you should set it as a hyperlink, rather than just a text string.

Excellent. Thanks a lot.

great

‘homeLink’=>CHtml::link(‘Main page’, Yii::app()->homeUrl),