Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 420 Bytes

README.md

File metadata and controls

18 lines (17 loc) · 420 Bytes

Yii2 widgetto

This is simple widget allows to replace peases in HTML code; For example:

<?=
	Widgetto::widget([
		'html'=>'<div>[[foo_widget {"passing_param":"123"}]]</div>',
		'widgets'=>[
			'foo_widget'=>[
				'class'=>'\common\widgets\MyWidget',
			]
		]
	]); //will output something like "<div>123</div>"
?>

The example is very simple. You may using this widget for another wide tasks.