Download the PHP package evgeniydev/yii2-form-creator-behavior without Composer
On this page you can find all versions of the php package evgeniydev/yii2-form-creator-behavior. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download evgeniydev/yii2-form-creator-behavior
More information about evgeniydev/yii2-form-creator-behavior
Files in evgeniydev/yii2-form-creator-behavior
Package yii2-form-creator-behavior
Short Description Yii2 behavior to create view form
License BSD-3-Clause
Homepage https://github.com/jeka-deadline/yii2-FormCreatorBehavior
Informations about the package yii2-form-creator-behavior
Yii2 form create behavior
This is behavior which generate view form for methods CREATE and UPDATE.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Basic usage
Model file (app/models/SomeModel.php)
Controller file (app/controllers/SomeController.php)
View file (app/views/some/form.php)
Other field types
Checkbox
Checkbox list
Widget
List box
Input with custom type
Full list constants types
- TEXT_INPUT_TYPE - text input
- __TEXTAREA_TYPE__ - textarea
- __CHECKBOX_TYPE__ - checkbox
- __DROPDOWNLIST_TYPE__ - dropdownlist
- __WIDGET_TYPE__ - widget
- __INPUT_TYPE__ - input with custom type
- HIDDEN_INPUT_TYPE - hidden input
- FILE_INPUT_TYPE - file input
- PASSWORD_INPUT_TYPE - password input
- __RADIO_TYPE__ - radio input
- __RADIOLIST_TYPE__ - radio list
- __CHECKBOXLIST_TYPE__ - checkboxe list
- __LISTBOX_TYPE__ - list box
Other configuration
Input with callable function function template: function($form, $model){ return ...; }
Label
Hint (short form)
or full form
Form configuration
Template view
Submit button options
Cancel button options
Wrapper block buttons form options
Tabs