marciocamello/yii2-mcms-ajax-form

Ajax form with malsup jquery-form

Installs: 86

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

pkg:composer/marciocamello/yii2-mcms-ajax-form

dev-master 2014-04-29 17:10 UTC

This package is not auto-updated.

Last update: 2025-10-07 11:39:13 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();?>