Parse html code to widgets when the tag is used. Specially useful when you want to render html pages read from database
Requirements ¶
Yii
Usage ¶
<?php
$this->widget('path.to.HtmlToExt', array(
'htmlContent' => '<htmlCode>
<widget extension="path.to.extension.Class" param="value" arrayParam="array[key1.val(value), key2.val(value)]">
<htmlCode>
</widget>
<htmlCode>',
)
);
Note that "param" and "arrayParam" should be replaced for the widget properties names. Also "key" can be repleaced for any number or name you need. Values and keys that only consist of numbers will be converted to integers.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.