Hi,
I’m using zii.widgets.CMenu, I’m trying to insert extra content after the anchor tag
example: <li><a href="x.html">Support</a><mytag></mytag></li>
Where <mytag> is my custom HTML content.
Thanks!
Hi,
I’m using zii.widgets.CMenu, I’m trying to insert extra content after the anchor tag
example: <li><a href="x.html">Support</a><mytag></mytag></li>
Where <mytag> is my custom HTML content.
Thanks!
Thanks onre,
For those interested, solution is:
<?php
$this->widget('zii.widgets.CMenu',array(
'itemTemplate'=>'{menu}<span></span>',
'items'=>array()
)
?>
Hello Newbie
I need help
I want to and output like this
<a href="abc.php"><img src="abc.jpg" /></a>
I tried like this
$login = Yii::app()->request->baseUrl."/css/images/site/login.png";
$this->widget('zii.widgets.CMenu', array(
'items' => array(
array('label' => "<img src='$login' alt=''>",
'itemOptions' => array('class' => 'hdr_link'),
'url' => array('/user/login'), 'visible' => Yii::app()->user->isGuest),
),
));
but it dont gives me correct output
Please help me out.
Thanks in Advance.