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

  1. Requirements
  2. Usage

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

0 0
3 followers
0 downloads
Yii Version: Unknown
License: BSD-2-Clause
Category: Others
Tags: html, widget
Developed by: __gir
Created on: Sep 17, 2013
Last updated: 11 years ago

Related Extensions