Skip to content

Bootstrap 5 Yii2 ajax CRUD generator. Based on johnitvn/yii2-ajaxcrud

Notifications You must be signed in to change notification settings

denkorolkov/yii2-ajaxcrud-bs5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-ajaxcrud-bs5

Gii CRUD template for Single Page Ajax Administration for yii2

Based on johnitvn/yii2-ajaxcrud

yii2 ajaxcrud extension screenshot

Features

  • Create, read, update, delete in onpage with Ajax
  • Bulk delete suport
  • Pjax widget suport
  • Export function(pdf,html,text,csv, excel,json)
  • Bootstrap5 support

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist denkorolkov/yii2-ajaxcrud-bs5 "@dev"

or add

"denkorolkov/yii2-ajaxcrud": "@dev"

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', 
        // 'downloadAction' => 'gridview/export/download',
        // 'i18n' => [],
        // 'exportEncryptSalt' => 'tG85vd1',
    ]       
]

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.