Yii Framework Forum: Checkbox Label - Yii Framework Forum

Jump to content

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

Checkbox Label how to checkbox before label Rate Topic: -----

#1 User is offline   Led 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 186
  • Joined: 16-January 12

Posted 11 January 2013 - 04:26 PM

How can i put label after checkbox with CActiveForm.
Using
<p> 
        <?php echo $form->checkBox($model, 'piscina'); ?>
        <?php echo $form->label($model, 'piscina'); ?></p>


but no change in view.
0

#2 User is offline   alirz23 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 668
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 11 January 2013 - 10:17 PM

make use of labelEx

<p> 
        <?php echo $form->checkBox($model, 'piscina'); ?>
        <?php echo $form->labelEx($model, 'piscina'); ?></p>

0

Share this topic:


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

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