Add span with class tag after the li tag in yii framework

am new in yii framework. I need an output like this html code


<ul class="yw0">

    <li><span class="highlighter"></span><a href="#">Sign in</a>

    </li>

    <li><a href="#">Register</a>

    </li>

</ul>

The code would be similar something but what would be the exact code to create an extra <span class="highlighter"></span> after the li tag and before the a tag**


<?php $this->widget('zii.widgets.CMenu',array(

    'id'=>'menu',

        'items'=>array(                

            array('label'=>'Signin', 'url'=>array('/site/signin')),

            array('label'=>'Register', 'url'=>array('/site/register'))

        ),            

    )); ?>

Try




<?php $this->widget('zii.widgets.CMenu',array(

    'id'=>'menu',

    'itemTemplate' => '<span class="highlighter"></span>{menu}',

    'items'=>array(                

        array('label'=>'Signin', 'url'=>array('/site/signin')),

        array('label'=>'Register', 'url'=>array('/site/register'))

    ),            

)); ?>



for the global modification or




<?php $this->widget('zii.widgets.CMenu',array(

    'id'=>'menu',

    'items'=>array(                

        array('label'=>'Signin', 'url'=>array('/site/signin'), 'template' => '<span class="highlighter"></span>{menu}'),

        array('label'=>'Register', 'url'=>array('/site/register'))

    ),            

)); ?>



for single item.

Yes you are absolutely correct.

One more thing needs to know, how can I add an class into a tag


<a class="ClassName">Sign in</a>




<?php $this->widget('zii.widgets.CMenu',array(

    'id'=>'menu',

    'itemTemplate' => '<span class="highlighter"></span>{menu}',

    'items'=>array(                

        array('label'=>'Signin', 'url'=>array('/site/signin'), 'linkOptions'=>array('class'=>'ClassName')),

        array('label'=>'Register', 'url'=>array('/site/register'))

    ),            

)); ?>