dev-master
9999999-dev
The Requires
- php >=5.4.0
- yiisoft/yii2 *
- shimuldas72/contact7_admin dev-master
by shimuldas72
yii2 module contact
Dynamic Form for Yii 2, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist shimuldas72/yii2-contact7 "dev-master"
Or, you may add, (*4)
"shimuldas72/yii2-contact7" "dev-master"
to the require section of your composer.json
file and execute php composer.phar update
., (*5)
For using it, add below code, (*6)
For admin panel: In your app config file add, (*7)
'modules' => [ 'contact7' => [ 'class' => 'shimuldas72\forms\Forms', ] ],
The link for creating forms is yoursiteurl/contact7/forms, (*8)
And for displaying form in your view file add, (*9)
<?= \shimuldas72\formwidget\Dynamicform::widget([ 'id'=>'mycustomid', 'form_id'=> 'created form id from admin', 'admin_module'=>'admin module name you added in config' ]); ?>
Example:, (*10)
<?= \shimuldas72\formwidget\Dynamicform::widget([ 'id'=>'contact12345', 'form_id'=> 'contact-form', 'admin_module'=>'contact7' ]); ?>
yii2 module contact