Breadcrumbs Widget In Yii Framework1.0

CBreadcrumbs displays a list of links indicating the position of the current page in the whole website. For Example
Home > Employee > admin

Default Breadcrumbs

To use CBreadcrumbs, one usually needs to configure its links property, which specifies the links to be displayed. For example,

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

<div class="breadcrumbs">
    <a href="/project/index.php">Home</a> » <span>Languages</span>
</div>

<?php $this->widget('zii.widgets.CBreadcrumbs', array(
    'links'=>$this-gt;breadcrumbs,
        'homeLink'=>false,
    )); ?><!-- breadcrumbs -->
<?php endif?>
Output HTML

<div class="breadcrumbs">
    <span>Languages</span>
</div>
Breadcrumb Array

<?php
$this->breadcrumbs=array(
	'Employees'=>array('index'),
	'Create',
);
?>

<?php if(isset($this->breadcrumbs)):
    $this->widget('zii.widgets.CBreadcrumbs', array(
        'links'=>$this-gt;breadcrumbs,
		'tagName'=>'ul',
		'homeLink'=>false,
		'activeLinkTemplate'=>'<li><a href="{url}">{label}</a></li>',
		'inactiveLinkTemplate'=>'<li><span>{label}</span></li>',
		'separator'=>'',
	)); ?><!-- breadcrumbs -->
<?php endif?>
Output HTML

<ul class="breadcrumbs">
	<li>>a href="/project/index.php?r=employee/index">Employees</a></li>
	<li><span>Create</span></li>
</ul>

<?php 
$this-gt;widget('zii.widgets.CBreadcrumbs',array(
    'links'=>array(
        Yii::t('ui','Employee')=>array('employee/create'),
        Yii::t('ui','Create')
    )
));
?>
[OR]

<?php
$this-gt;widget('zii.widgets.CBreadcrumbs', array(
    'links'=>array(
        'Employee'=>array('employee/create'),
        'Create',
    ),
));
?>
Output HTML

<div class="breadcrumbs">
	<a href="/project/index.php">Home</a> » 
	<a href="/project/index.php?r=employee/create">Employee</a> » <span>Create</span>
</div>