yii breadcrumbs remove home

Yii framework API: http://www.yiiframework.com/doc/api/1.1/CBreadcrumbs

Application Scene
Yii breadcrumbs display the Home link automatically and the home link is the application’s home page link, when you setup a subdomain and want the home link to be the www domain, you may want to disable the default home link.

Step 1

<?php if(isset($this->breadcrumbs)):?>
    <?php $this->widget('zii.widgets.CBreadcrumbs', array(
                            'homeLink' => false,
              )); ?><!-- breadcrumbs -->
<?php endif?>

Step 2

$this->breadcrumbs = array(
    'Menu1'=>array('post/view', 'id'=>12),

Leave a Reply