callmez/yii2-ajaxcrud

单页AJAX-CRUD GII模板生成器

Installs: 24

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 114

Type:yii2-extension

1.0.4 2015-07-02 03:21 UTC

This package is auto-updated.

Last update: 2024-11-13 04:47:19 UTC


README

Latest Stable Version License Total Downloads Monthly Downloads Daily Downloads

Gii CRUD template for Single Page Ajax Administration for yii2

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)

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist callmez/yii2-ajaxcrud "*"

or add

"callmez/yii2-ajaxcrud": "*"

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

Edit modules config in your main config file

'modules' => [
    ...
    
    'gridview' =>  [
        'class' => 'kartik\grid\Module'
    ],
    'gii' => [
        ...
        
        'generators' =>  [
            ...
            'ajaxcrud' => 'callmez\ajaxcrud\generators\Generator'
        ]
    ]
]

You can then access Gii through the following URL:

http://localhost/path/to/index.php?r=gii

and you can see Ajax CRUD Generator

Contributing to this project

Anyone and everyone is welcome to contribute.

License

yii2-ajaxcrud is released under the Apache-2.0.

Versions History

Version 1.0.4

  • Code format, The generate code looks good now.

Version 1.0.3

  • Separate assets to yii2-ajaxcrud-assets

Version 1.0.2

  • Clean template for better output

Version 1.0.1

  • Fix bug: Invalid icon for fullscreen button

Version 1.0.0

  • Initial version