1,在布局文件只能配置(layouts)
2,在view文件中配置
layouts 文件中配置
<?php if(isset($this->breadcrumbs)):?> <?php $this->widget('zii.widgets.CBreadcrumbs', array( 'homeLink'=>CHtml::link(Yii::t('zii','首页'),Yii::app()->homeUrl), 'separator'=>'---->', 'links'=>$this->breadcrumbs, )); ?><!-- breadcrumbs --> <?php endif?>
view 文件中配置
$this->breadcrumbs=array( '楼盘' =>'/building/index', '楼盘列表'=>array('/building/index',"buname"=>"东方早成",'bid'=>'1024') );