dev-master
9999999-dev https://github.com/dotallineed/yii2-widgets-builderAn extension for creating and storing html widgets with content to the database for Yii2 site builder
MIT
The Requires
by Kinggeorge Magaga
extension yii2
An extension for creating and storing html widgets with content to the database for Yii2 site builder
An extension for creating and storing html widgets with content to the database for Yii2 site builder, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist dotallineed/yii2-widgets-builder "dev-master"
or add, (*4)
"dotallineed/yii2-widgets-builder": "*"
to the require section of your composer.json
file., (*5)
Once the extension is installed, Add the following code in your main configuration file, (*6)
```php 'builderwidgets' => [ 'class' => 'dotallineed\widgetsbuilder\BuilderWidget',, (*7)
'storage' => [ 'class' => 'dotallineed\widgetsbuilder\MultipleStorage', 'storages' => [ [ 'class' => 'dotallineed\widgetsbuilder\DatabaseStorage', 'table' => 'builder_widgets', ], ], ] ],
```, (*8)
and simply use it in your code by :, (*9)
php
$builder_widgets=Yii::$app->builderwidgets;
, (*10)
An extension for creating and storing html widgets with content to the database for Yii2 site builder
MIT
extension yii2