PHP code example of pixium / yii2-widget-form-builder
1. Go to this page and download the library: Download pixium/yii2-widget-form-builder library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pixium / yii2-widget-form-builder example snippets
use pixium\widgets\FromBuilder;
FormBuilder::widget([
'div' => 'container',
'data' => data, //JSON content, can be empty
'mode' => 'run' //or 'build'
'singleSection' => false,
'debug' => false,
]);
use pixium\widgets\FromBuilder;
$form->field($model, 'data')->widget(
FormBuilder::class,
[
'div' => 'container',
'data' => data, //JSON content, can be empty
'mode' => 'run' //or 'build'
'singleSection' => false,
'debug' => false,
]
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.