hi guys,
here goes my code for a checkboxList with each items have a specific template.I need a way to pass variables into the template
other than {label}.is that possible?
<?php echo $form->checkBoxList($model,'gifts',$model->getGiftOptions(),array('template'=>'
<div class="returnGift-frame">
<div class="returnGift-frameInside-Row">
<div class="returnGift-frameInside-RowLeft">
<img src="'.Yii::app()->request->baseUrl.'/images/return-gift-icon.jpg" width="39" height="39" alt="" /><br />
<span class="thank">Thank you!</span>
</div>
<div class="returnGift-frameInside-RowRight"><img src="'.Yii::app()->request->baseUrl.'/images/brand-flipkart.jpg" width="100" height="34" alt="" /><br />
<span class="WebRupee">Rs.</span> <span class="giftrup">200</span>
</div>
</div>
<div class="returnGift-frameInside-Row">
<div class="giftvalid">
Validity: 30 days</div>
<div class="giftMinSpend">
Min. spend <span class="WebRupee">Rs.</span> 2000</div>
</div>
<div class="returnGift-frameInside-RowCheckbox">{input}</div>
</div>
')
); ?>
it is worked fine.But what my problem is that i want to display some values like price,validate from the database.
i found only {label} can be used inside the template to display variable values.is there is any other efficient way to pass
values into this template?
-Sirin