Yii Framework Forum: how to HTML-encode labels - Yii Framework Forum

Jump to content

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

how to HTML-encode labels Rate Topic: -----

#1 User is offline   bas_vdl 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 215
  • Joined: 01-April 09

Posted 06 January 2010 - 03:36 PM

how to HTML-encode the labels that are automatically generated using the code below:

echo CHtml::checkBoxList('Categories',
array(),
CHtml::listData(Category::model()->findAll(), 'IdCategory', 'Category'),
array(
   'template' => '<li>{input} {label}</li>', 
   'separator' => '', 
   'checkAll' => 'Alle rubrieken')
);

0

#2 User is offline   andy_s 

  • Random Member Title
  • Yii
  • Group: Moderators
  • Posts: 1,526
  • Joined: 22-June 09
  • Location:Russia, Kostroma

Posted 06 January 2010 - 04:02 PM

Class reference usually helps a lot :)

http://www.yiiframew...listData-detail
http://www.yiiframew...odeArray-detail
0

#3 User is offline   bas_vdl 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 215
  • Joined: 01-April 09

Posted 06 January 2010 - 04:08 PM

View Postandy_s, on 06 January 2010 - 04:02 PM, said:



if you know where to look for :). but this helps a lot. another method learned!

thank you!
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