Download the PHP package errohitsinghal/yii2-ajaxcrud-bs5-advanced without Composer
On this page you can find all versions of the php package errohitsinghal/yii2-ajaxcrud-bs5-advanced. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download errohitsinghal/yii2-ajaxcrud-bs5-advanced
More information about errohitsinghal/yii2-ajaxcrud-bs5-advanced
Files in errohitsinghal/yii2-ajaxcrud-bs5-advanced
Package yii2-ajaxcrud-bs5-advanced
Short Description Gii CRUD template with password validation modal for Single Page Ajax Administration for yii2 with Bootstrap 5 support
License Apache-2.0
Informations about the package 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

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
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json file.
Usage
For first you must enable Gii module Read more about Gii code generation tool
Because this extension used kartik-v/yii2-grid extensions so we must config gridview module before
Let 's add into modules config in your main config file
Note: Font Awesome icons not required! See Bootstrap icons!
You can then access Gii through the following URL:
http://localhost/path/to/index.php?r=gii
and you can see Ajax CRUD Generator
Password Validation Modal
This advanced version includes secure password/passcode validation for critical operations like bulk delete.
Using Password Modal in Views
To enable passcode confirmation for delete or other critical operations, add these data attributes to your button:
Modal Features
- validatePasscode: Enable/disable passcode validation (default: false)
- passcodeType: Label for passcode input (e.g., 'Admin Password', 'PIN')
- passcodeValue: The correct passcode to validate against
- Toast Notifications: Success/error messages with automatic display
- Form Validation: Built-in form submission handling
- Custom Callbacks: Define custom success and cancel callbacks
Available Modal Data Attributes
data-confirm-title: Modal titledata-confirm-message: Modal content/messagedata-confirm-passcode: Enable passcode validation (true/false)data-confirm-passcode-type: Passcode input labeldata-confirm-passcode-value: Correct passcode valuedata-confirm-ok: OK button labeldata-confirm-cancel: Cancel button labeldata-modal-size: Modal size (small/normal/large)data-request-method: HTTP method (GET/POST)hrefordata-url: Target URL for the action
Pjax Refresh on Modal Close
This extension supports automatic Pjax container refresh when a modal is closed. This is useful when you want to refresh a grid or other Pjax-wrapped content after a modal action is completed.
Usage
Add the data-pjax-refresh attribute to any button in your modal footer with the Pjax container ID as the value:
When the modal is closed (either by clicking the Close button or any other dismiss action), the Pjax container with the specified ID will automatically be refreshed.
Bootstrap 5 Classes
This extension fully supports Bootstrap 5 CSS classes including:
float-start/float-end(replaces pull-left/pull-right)btn-closefor modal close buttonform-label,form-control,invalid-feedbackfor formsis-invalid,is-validfor form validation statesalert-dangerfor error messages- All modern Bootstrap 5 utility classes
Contributing
Lets contribute to keep it updated and make it useful for all friends.