payu2107 / zii

Automatically exported from code.google.com/p/zii
0 stars 0 forks source link

Home link should be link in breadcrumb widget #50

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi guys!

If you consider to overwrite the homeLink text, the widget render a simple 
text, not a link to the root of the application. I think it's a wrong behavior. 
So I made a little modification on it:

104: else if($this->homeLink!==false)
105:    $links[]=CHtml::link($this->homeLink,Yii::app()->homeUrl);

Well, if you change the home link's anchor, the widget generate a link, not 
just print the text.

Original issue reported on code.google.com by benyo.ba...@gmail.com on 13 Jul 2010 at 11:48

GoogleCodeExporter commented 8 years ago
This is by design. You can set : 'homeLink'=>CHtml::link(...) to make it a 
hyperlink.

Original comment by qiang.xue on 13 Jul 2010 at 12:38