Yii Framework Forum: Booster Tbnavbar Problem With Ampersands - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Booster Tbnavbar Problem With Ampersands Version 1.0.6 Rate Topic: -----

#1 User is offline   KonApaz 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,317
  • Joined: 21-February 11
  • Location:Greece

Posted 02 May 2013 - 04:38 AM

Hi to everyone

I have download the latest version of Booster

I use TbNavbar to display a tree-menu but when the label of an item has an ampersand (&) then displayed as &
According to sub menu lever the &amp displayed n-th (submenu lever) times (for example double-nested sub menu displays &&&)

I try to use 'encodeLabel'=>false but no luck

What is wrong?

Thanks
Yii is the best php framework in the world!
find our demo Yii extension on www.webkit.gr
Is it post useful? please v++ ;)
0

#2 User is offline   KonApaz 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,317
  • Joined: 21-February 11
  • Location:Greece

Posted 02 May 2013 - 05:18 AM

Solved,
There are two 'items'.

'items' => array(
                    array(
                        'class' => 'bootstrap.widgets.TbMenu',
                        
                        'encodeLabel'=>false,
                        'items' => array(),
...


The right position to set the 'encodeLabel'=>false is in the first 'items', NOT in for each label
Yii is the best php framework in the world!
find our demo Yii extension on www.webkit.gr
Is it post useful? please v++ ;)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users