New version 0.9 has been released! Jun 16, 2015
×

Feedback module

Description

Text module helps you to create live editable texts on frontend.


Include

use yii\easyii\modules\feedback\api\Feedback;


Public functions

array Feedback::form( $options = [] )
$options array
  • successUrl (string) - redirect url on success.
  • errorUrl (string) - redirect url on error.
Returns fully worked standalone html form.

array Feedback::save( $data )
If you using your own form, this function will be useful for manual saving feedback's.
$data array
  • name (string)
  • email (string)
  • phone (string)
  • title (string)
  • text (string)
  • g-recaptcha-response (string) - required attribute when reCaptcha is enabled
Returns Result array.