Download the PHP package freesoftwarefactory/smartform without Composer
On this page you can find all versions of the php package freesoftwarefactory/smartform. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download freesoftwarefactory/smartform
More information about freesoftwarefactory/smartform
Files in freesoftwarefactory/smartform
Download freesoftwarefactory/smartform
More information about freesoftwarefactory/smartform
Files in freesoftwarefactory/smartform
Vendor freesoftwarefactory
Package smartform
Short Description Build forms automatically. Advanced controls. Yii2
License MIT
Package smartform
Short Description Build forms automatically. Advanced controls. Yii2
License MIT
Please rate this library. Is it a good library?
Informations about the package smartform
Setup
-
Install this class to make it visible
cd /your/app/components; ln -s ../vendor/freesoftwarefactory/smartform/SmartformWidget.php .
-
Setup a config file by installing it in your 'params' section,
// copy the template from ./template/smartform.php to: 'field-groups'=>require(__DIR__.'/my-smart-form-settings.php'),
Usage
Callback Examples
Sometimes a callback is required to get values from it.
Callback Example: Read select options from database.
How to Upload a File
-
in your config file define a field named "product_image" in this way:
-
in the widget definition, add a inline callback. this is used to tell the widget where to put the $_POST and $_FILES.
-
the controller which will receive the $_POST and $_FILES should declare a action and some exceptions to CSRF:
- only for your information, the LOG injected into the action will tell you something like the following, so use this information in order to get your file:
All versions of smartform with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.2
The package freesoftwarefactory/smartform contains the following files
Loading the files please wait ....