overplex/yii2wajaxcrud
Composer 安装命令:
composer require overplex/yii2wajaxcrud
包简介
Gii CRUD template for Single Page Ajax Administration for yii2
README 文档
README
Gii CRUD template for Single Page Ajax Administration for yii2
Features
- Create, read, update, delete in onpage with Ajax
- Bulk delete suport
- Pjax widget suport
- Export function(pdf,html,text,csv,excel,json)
- Editable suport
- Daterange suport
- Internationalization
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist overplex/yii2wajaxcrud "^2.1"
or
php composer.phar require --prefer-dist overplex/yii2wajaxcrud "^3.0"
or add
"overplex/yii2wajaxcrud": "^2.1"
or
"overplex/yii2wajaxcrud": "^3.0"
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' ] ]
gii config like
$config['bootstrap'][] = 'gii'; $config['modules']['gii'] = [ 'class' => 'yii\gii\Module', ]; $config['modules']['gii']['generators']['wodrowmodel'] = [ 'class' => \overplex\wajaxcrud\generators\model\Generator::class, 'showName' => "Model Generator 2", ]; $config['modules']['gii']['generators']['wodrowwajaxcrud'] = [ 'class' => \overplex\wajaxcrud\generators\crud\Generator::class, 'showName' => "Ajax CRUD Generator 2", ];
You can then access Gii through the following URL:
http://localhost/path/to/index.php?r=gii
and you can see YOUR AJAX CRUD GENERATOR
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2020-07-30