widgets/Breadcrumbs.php
public function renderItem($label, $options = array())
    {
        if ($this->tagName === 'nav') {
            $url         = ArrayHelper::removeValue($options, 'href', '#');
            $htmlOptions = ArrayHelper::removeValue($options, 'options', array());
            echo \CHtml::openTag('li', $htmlOptions);
            echo \CHtml::link($label, $url);
            echo \CHtml::closeTag('li');
        } else {
            $htmlOptions = ArrayHelper::removeValue($options, 'options', array());
            echo \CHtml::tag('a', array_merge($htmlOptions, $options), $label);
        }
    }
public function renderItem($label, $options = array())
    {
        if ($this->tagName === 'nav') {
            $url         = ArrayHelper::removeValue($options, 'href', '#');
            $htmlOptions = ArrayHelper::removeValue($options, 'options', array());
            echo \CHtml::openTag('li', $htmlOptions);
            echo \CHtml::link($label, $url);
            echo \CHtml::closeTag('li');
        } else {
            $htmlOptions = ArrayHelper::removeValue($options, 'options', array());
            echo \CHtml::tag('a', array_merge($htmlOptions, $options), $label);
        }
    }
public function renderItem ( $ label , $ options = array ( ) ) { if ( $ this -> tagName === 'nav' ) { $ url = ArrayHelper :: removeValue ( $ options , 'href' , '#' ) ; $ htmlOptions = ArrayHelper :: removeValue ( $ options , 'options' , array ( ) ) ; echo \ CHtml :: openTag ( 'li' , $ htmlOptions ) ; echo \ CHtml :: link ( $ label , $ url ) ; echo \ CHtml :: closeTag ( 'li' ) ; } else { $ htmlOptions = ArrayHelper :: removeValue ( $ options , 'options' , array ( ) ) ; echo \ CHtml :: tag ( 'a' , array_merge ( $ htmlOptions , $ options ) , $ label ) ; } }
Generates the rendering of a breadcrumb item
@param string $label
@param array $options
Generates the rendering of a breadcrumb item