daxslab/yii2-contactform-module Yii2 module for including contact forms.

i18nlocale

Yii2 Contact Form

Latest Stable Version Total Downloads Latest Unstable Version License

Yii2 module for including contact forms

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist daxslab/yii2-contactform-module "*"

or add

"daxslab/yii2-contactform-module": "*"

to the require section of your composer.json file.

Usage

Setup the module on config file

'modules' => [
    //...
    'contactForm' => [
        'class' => 'daxslab\contactform\Module',
        'viewPath' => '@app/views/contactForm', //you can configure the view path in order to use custom views
    ],
    //...
],

Partial usage

You can embed the form on any view using Yii::$app->runAction('/contactForm/default/contact', ['renderPartial' => true]).

Customization

  • email: email to send and receive email.
  • successMessage: message to show to set on flash when sending email.
  • errorMessage: message to show to set on flash if failed when sending email.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.5 is the latest of 6 releases



MIT license
Stats
1 github stars & 0 github forks
0 downloads in the last day
0 downloads in the last 30 days
163 total downloads