marciocamello / yii2-mcms-ajax-form
Ajax form with malsup jquery-form
Installs: 86
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
This package is not auto-updated.
Last update: 2024-12-17 07:43:50 UTC
README
Ajax form with malsup jquery-form
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist marciocamello/yii2-mcms-ajax-form "*"
or add
"marciocamello/yii2-mcms-ajax-form": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?php $form = \mcms\ajaxform\AjaxActiveForm::begin([ 'id' => 'register-form', 'options'=>[ 'enctype'=>'multipart/form-data' ], 'modal' => true, 'modalOptions' => [ 'header' => false, ], 'pluginOptions' => [ 'resetForm' => false, ], ]); ?> Your form objects here. <?php \mcms\ajaxform\AjaxActiveForm::end();?>