2017 © Pedro Peláez
 

yii2-extension yii2-contact7

image

shimuldas72/yii2-contact7

  • Saturday, April 8, 2017
  • by shimuldas72
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Dynamic Form for Yii 2, (*1)

Installation

Install With Composer

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' ]); ?>

The Versions

08/04 2017

dev-master

9999999-dev

  Sources   Download

The Requires

 

by Avatar shimuldas72

yii2 module contact