cangak / yii2-ajaxcrud-bs4
Gii CRUD template for Single Page Ajax Administration for yii2
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- kartik-v/yii2-editable: ^1.7.3
- kartik-v/yii2-grid: ^3.0.4
- kartik-v/yii2-mpdf: ^1.0.0
- yiisoft/yii2: *
- yiisoft/yii2-bootstrap4: *
- yiisoft/yii2-gii: *
This package is auto-updated.
Last update: 2025-03-04 20:43:46 UTC
README
Features
- Create, read, update, delete in onpage with Ajax
- Bulk delete suport
- Pjax widget suport
- Export function(pdf,html,text,csv,excel,json)
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist cangak/yii2-ajaxcrud-bs4 "*"
or add
"cangak/yii2-ajaxcrud-bs4": "*"
to the require section of your composer.json
file.
karena glyphicon glyphicon-plus di bootstrap 4 ++ tidak lagi di support jadi pakai fa
composer require "rmrevin/yii2-fontawesome:2.10.*"
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
'modules' => [ 'gridview' => [ 'class' => '\kartik\grid\Module' ] ]
janganlupa di AppAsset.php
ublic $depends = [ 'yii\web\YiiAsset', 'yii\bootstrap4\BootstrapAsset', // '\rmrevin\yii\fontawesome\AssetBundle' ];
lalu di param
'bsVersion' => '4.x', // this will set globally `bsVersion` to Bootstrap 5.x for all Krajee Extensions
You can then access Gii through the following URL:
http://localhost/path/to/index.php?r=gii
and you can see Ajax CRUD Generator