This is not my work, this repository created by johitvn, but because I (and maybe some other people) need to optimize this Gii Template with BS4, so I create new repository to accomodate it. If johitvn already merge my PR, I will delete this repository.
Gii CRUD template for Single Page Ajax Administration for yii2
- Create, read, update, delete in onpage with Ajax
- Bulk delete suport
- Pjax widget suport
- Export function(pdf,html,text,csv,excel,json)
The preferred way to install this extension is through composer.
php composer.phar require --prefer-dist hoaaah/yii2-ajaxcrud-bs4 "*"
to the require section of your
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' ]
You can then access Gii through the following URL:
and you can see Ajax CRUD Generator