shimuldas72 / yii2-contact7
There is no license information available for the latest version (dev-master) of this package.
Package info
github.com/shimuldas72/contact7
Type:yii2-extension
pkg:composer/shimuldas72/yii2-contact7
dev-master
2017-04-08 17:40 UTC
Requires
- php: >=5.4.0
- shimuldas72/contact7_admin: dev-master
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-03-15 09:09:28 UTC
README
Dynamic Form for Yii 2
Installation
Install With Composer
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist shimuldas72/yii2-contact7 "dev-master"
Or, you may add
"shimuldas72/yii2-contact7" "dev-master"
to the require section of your composer.json file and execute php composer.phar update.
For using it, add below code
For admin panel: In your app config file add
'modules' => [
'contact7' => [
'class' => 'shimuldas72\forms\Forms',
]
],
The link for creating forms is yoursiteurl/contact7/forms
And for displaying form in your view file add
<?= \shimuldas72\formwidget\Dynamicform::widget([ 'id'=>'mycustomid',
'form_id'=> 'created form id from admin',
'admin_module'=>'admin module name you added in config' ]); ?>
Example:
<?= \shimuldas72\formwidget\Dynamicform::widget([ 'id'=>'contact12345',
'form_id'=> 'contact-form',
'admin_module'=>'contact7' ]); ?>