htmltoext

Parse html code to widgets when the tag <widget> is used.
4 followers

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.

GitHub Repo

https://github.com/stupidusername/HtmlToExt

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet
  • Yii Version:
  • License: New BSD License
  • Developed by: __gir
  • Category: Others
  • Votes: No votes yet
  • Downloaded: 0 times
  • Created on: Sep 17, 2013
  • Last updated: Sep 17, 2013
  • Tags: widget, html