How To Use Chtml::link(); Inside “<Li></li>” In Yii?

Hi All,

I need to use CHtml::link() inside " ".

Here is my existing code-




$html .="<li>\n <a href='books".$menu['items'][$itemId]['link']."'>                  	

".$menu['items'][$itemId]['label']."     				

</a> \n"; 	

$html .= buildMenutree($itemId, $menu);  

$html .= "</li> \n";



I hope can find a nice solution.

So what’s the problem?

$html .="<li>\n" . CHtml::link(…) . "…"