Special characters in Yii framework menu -


i'm developing cms using yii framework. in developing theme have problem. in menus have special characters (the website in italian). html markups special characters doesn't work menu items. , if put character looks different. here code:

<div class="horizontal-menu">      <?php $this->widget('zii.widgets.cmenu',array(        'items'=>array(             array('label'=>'le attivit&agrave;', 'url'=>array('/site/page', 'view'=>'attivita')),             array('label'=>'news', 'url'=>array('/site/page', 'view'=>'news')),         ),     )); ?> 

le attivitÀ 1 making problem. how can show special characters here?

cmenu's labels html-encoded default, should use array('label'=>'le attivitÀ', 'url'=>array('/site/page', 'view'=>'attivita')),.

however if must use html-encoded strings in code, can turn encoding off setting encodelabel false, $this->widget('zii.widgets.cmenu',array( 'items'=>array(), 'encodelabel'=>false, ),


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -