PHPackages                             buihoangvu/yii2-modalajax - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. buihoangvu/yii2-modalajax

ActiveYii2-extension[Templating &amp; Views](/categories/templating)

buihoangvu/yii2-modalajax
=========================

A wrapper around Yii2 Bootstrap Modal for using an ActiveForm via AJAX inside

014JavaScript

Since Mar 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/buihoangvu/yii2-ModalAjax)[ Packagist](https://packagist.org/packages/buihoangvu/yii2-modalajax)[ RSS](/packages/buihoangvu-yii2-modalajax/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-modal-ajax
===============

[](#yii2-modal-ajax)

A wrapper around Yii2 Bootstrap Modal for using an ActiveForm via AJAX inside.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ php composer.phar require --prefer-dist karnbrockgmbh/yii2-modal-ajax "@dev"
```

or add

```
"karnbrockgmbh/yii2-modal-ajax": "@dev"

```

to the require section of your composer.json file.

Usage
-----

[](#usage)

### Controller

[](#controller)

Extend your basic logic with ajax render and save capabilities:

```
