Yii Framework Forum: remove default <br> for activeCheckBoxList() - Yii Framework Forum

Jump to content

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

remove default <br> for activeCheckBoxList() Rate Topic: -----

#1 User is offline   bas_vdl 

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

Posted 28 October 2009 - 10:33 AM

Hello,

guy's is there a way to get rit of the default <br> that the activeCheckBoxList() will generate between the options?

thank you.

code:
<?php
echo CHtml::activeCheckboxList(
    $daytrip, 'Categories',
    $categories, 
    array(
        'template' => '<li>{input} {label}</li>',
        'checkAll' => 'Alle rubrieken')
    );
?>

0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,899
  • Joined: 04-October 08
  • Location:DC, USA

Posted 28 October 2009 - 10:47 AM

Set 'separator' option.
0

#3 User is offline   bas_vdl 

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

Posted 28 October 2009 - 11:25 AM

:unsure: thank you!

magic:
'separator' => ''

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