bambinou
(Benoitrivaux)
1
Hello,
COuld you please tell me how to output my div when inside a label:
Here is the label:
<?php echo $form->labelEx($model, 'whats_included', array('label' => 'What\'s included in your box?')); ?>
and here is what I would like to achieve:
<?php echo $form->labelEx($model, 'whats_included', array('label' => 'What\'s included in your box?<div class="tooltip_align1"></div>')); ?>
Thank you!
Ben
Bizley
(Bizley)
2
It should work that way. Label value is not Html-encoded.
bambinou
(Benoitrivaux)
3
No unfortunately I cannot get it to work that way.
Bizley
(Bizley)
4
I have just checked it and label is not html-encode for sure. I’ve put
<?php echo $form->labelEx($model, 'test', array('label' => 'What\'s included in your box?<div class="tooltip_align1"></div>')); ?>
and output was
<label for="Model_test">What's included in your box?<div class="tooltip_align1"></div></label>
Now I’m not sure if this is what you want… I’m starting to think you want to modify the template for label or something…