Download the PHP package metalguardian/yii2-form-builder without Composer
On this page you can find all versions of the php package metalguardian/yii2-form-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download metalguardian/yii2-form-builder
More information about metalguardian/yii2-form-builder
Files in metalguardian/yii2-form-builder
Download metalguardian/yii2-form-builder
More information about metalguardian/yii2-form-builder
Files in metalguardian/yii2-form-builder
Vendor metalguardian
Package yii2-form-builder
Short Description Small and easy form builder
License MIT
Package yii2-form-builder
Short Description Small and easy form builder
License MIT
Please rate this library. Is it a good library?
Informations about the package yii2-form-builder
Yii2 Form Builder
Small and easy form builder. You can store form configuration in form model.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
First of all you need write form config (you can store it in model class)
<?= $form->renderForm($model, $model->getFormConfig()) ?>
<div class="form-group">
<?= Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-success']) ?>
</div>
.....
Advanced Usage
You can define configuration of different elements in model
<?= $form->renderField($model1, 'label', \app\helpers\Helper::getLabelConfig()); ?>
<?= $form->renderField($model1, 'content', \app\helpers\Helper::getContentConfig()); ?>
<?= $form->renderField($model2, 'label', \app\helpers\Helper::getLabelConfig()); ?>
<?= $form->renderField($model2, 'content', \app\helpers\Helper::getContentConfig()); ?>
<div class="form-group">
<?= Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-success']) ?>
</div>
.....
All versions of yii2-form-builder with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
*
The package metalguardian/yii2-form-builder contains the following files
Loading the files please wait ....