s4studio / yii2-ajaxcrud
Gii CRUD template for Single Page Ajax Administration for yii2
Installs: 66
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 114
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-bootstrap5: *
- yiisoft/yii2-gii: *
README
Gii CRUD template for Single Page Ajax Administration for yii2 using Bootstrap4 / Bootstrap5
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
php composer.phar require --prefer-dist s4studio/yii2-ajaxcrud "dev-master"
or add
"s4studio/yii2-ajaxcrud": "dev-master"
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
'modules' => [ 'gridview' => [ 'class' => \kartik\grid\Module::class, 'bsVersion' => '5.x', // or '4.x' // 'downloadAction' => 'gridview/export/download', // 'i18n' => [], // 'exportEncryptSalt' => 'tG85vd1', ] ]
Insert the following code into layout main file (ex. /views/layouts/main.php)
<?php Modal::begin([ "id"=>"ajaxCrudModal", "title" => '<h4 class="modal-title"></h4>', "footer"=>"", ]); Modal::end(); ?>
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
Lets contibute to keep it updated and make it useful for all friends.