Skip to content

Commit

Permalink
Merge pull request johnitvn#95 from WinterSilence/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Er-Kalpesh authored Aug 19, 2021
2 parents 07b7e97 + 2415fbc commit 0834932
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Features
+ Create, read, update, delete in onpage with Ajax
+ Bulk delete suport
+ Pjax widget suport
+ Export function(pdf,html,text,csv,excel,json)
+ Export function(pdf,html,text,csv, excel,json)

Installation
------------
Expand All @@ -25,31 +25,17 @@ The preferred way to install this extension is through [composer](http://getcomp
Either run

```
php composer.phar require --prefer-dist johnitvn/yii2-ajaxcrud "~2.1"
php composer.phar require --prefer-dist johnitvn/yii2-ajaxcrud "^2.1"
```

or add

```
"johnitvn/yii2-ajaxcrud": "~2.1"
"johnitvn/yii2-ajaxcrud": "^2.1"
```

to the require section of your `composer.json` file.

If you want to use BS4 compatibility, you can run

```
php composer.phar require --prefer-dist johnitvn/yii2-ajaxcrud "~3.0"
```

or add

```
"johnitvn/yii2-ajaxcrud": "~3.0"
```

to the require section of your `composer.json` file. Make sure your kartik BS4 params already set properly.


Usage
-----
Expand All @@ -58,13 +44,18 @@ For first you must enable Gii module Read more about [Gii code generation tool](
Because this extension used [kartik-v/yii2-grid](https://github.com/kartik-v/yii2-grid) extensions so we must config gridview module before

Let 's add into modules config in your main config file
````php
```php
'modules' => [
'gridview' => [
'class' => '\kartik\grid\Module'
'class' => \kartik\grid\Module::class,
'bsVersion' => '4.x', // or '3.x'
// 'downloadAction' => 'gridview/export/download',
// 'i18n' => [],
// 'exportEncryptSalt' => 'tG85vd1',
]
]
````
```
Note: Font Awesome icons not required! See [Bootstrap icons](https://demos.krajee.com/grid#bootstrap-icons)!

You can then access Gii through the following URL:

Expand Down

0 comments on commit 0834932

Please sign in to comment.