PHPackages                             errohitsinghal/yii2-ajaxcrud-bs5-advanced - 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. [Database &amp; ORM](/categories/database)
4. /
5. errohitsinghal/yii2-ajaxcrud-bs5-advanced

ActiveYii2-extension[Database &amp; ORM](/categories/database)

errohitsinghal/yii2-ajaxcrud-bs5-advanced
=========================================

Gii CRUD template with password validation modal for Single Page Ajax Administration for yii2 with Bootstrap 5 support

1.07(6mo ago)029Apache-2.0PHP

Since Nov 24Pushed 6mo agoCompare

[ Source](https://github.com/errohitsinghal/yii2-ajaxcrud-bs5-advanced)[ Packagist](https://packagist.org/packages/errohitsinghal/yii2-ajaxcrud-bs5-advanced)[ RSS](/packages/errohitsinghal-yii2-ajaxcrud-bs5-advanced/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (9)Used By (0)

yii2-ajaxcrud-bs5-advanced
==========================

[](#yii2-ajaxcrud-bs5-advanced)

Gii CRUD template for Single Page Ajax Administration for yii2 with Password Validation Modal Support

Based on **johnitvn/yii2-ajaxcrud** and **denkorolkov/yii2-ajaxcrud-bs5**

[![yii2 ajaxcrud extension screenshot](https://camo.githubusercontent.com/250253726e8ea6d324caf90131768c343096933630d9a29abf307901b2f651dd/68747470733a2f2f63312e737461746963666c69636b722e636f6d2f312f3333302f31383635393933313433335f366533646232343631645f6f2e706e67 "yii2 ajaxcrud extension screenshot")](https://camo.githubusercontent.com/250253726e8ea6d324caf90131768c343096933630d9a29abf307901b2f651dd/68747470733a2f2f63312e737461746963666c69636b722e636f6d2f312f3333302f31383635393933313433335f366533646232343631645f6f2e706e67)

Features
--------

[](#features)

- Create, read, update, delete in onpage with Ajax
- Bulk delete support with optional password validation
- Pjax widget support
- Export function (PDF, HTML, Text, CSV, Excel, JSON)
- Bootstrap 5 support
- **Password Modal for Critical Operations** - Secure sensitive actions with passcode confirmation
- Customizable button text with Font Awesome icons
- Advanced modal dialogs with toast notifications
- Table-based modal content display

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist errohitsinghal/yii2-ajaxcrud-bs5-advanced "@dev"

```

or add

```
"errohitsinghal/yii2-ajaxcrud-bs5-advanced": "@dev"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

For first you must enable Gii module Read more about [Gii code generation tool](http://www.yiiframework.com/doc-2.0/guide-tool-gii.html)

Because this extension used [kartik-v/yii2-grid](https://github.com/kartik-v/yii2-grid) extensions so we must config gridview module before

Let 's add into modules config in your main config file

```
'modules' => [
    'gridview' =>  [
        'class' => \kartik\grid\Module::class,
        'bsVersion' => '5.x',
        // 'downloadAction' => 'gridview/export/download',
        // 'i18n' => [],
        // 'exportEncryptSalt' => 'tG85vd1',
    ]
]
```

Note: Font Awesome icons not required! See [Bootstrap icons](https://demos.krajee.com/grid#bootstrap-icons)!

You can then access Gii through the following URL:

and you can see **Ajax CRUD Generator**

Password Validation Modal
-------------------------

[](#password-validation-modal)

This advanced version includes secure password/passcode validation for critical operations like bulk delete.

### Using Password Modal in Views

[](#using-password-modal-in-views)

To enable passcode confirmation for delete or other critical operations, add these data attributes to your button:

```
