wodrow 2019-05-09 12:17:48 799次扫瞄 0条评论 0 0 0

yii2wajaxcrud

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

Installation

The preferred way to install this extension is through .

Either run

php composer.phar require --prefer-dist wodrow/yii2wajaxcrud "^2.1"

or add

"wodrow/yii2wajaxcrud": "^2.1"

to the require section of your composer.json file.

Usage

For first you must enable Gii module Read more about

快乐飞艇Because this extension used 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']['wodrowwajaxcrud'] = [
    'class' => \wodrow\wajaxcrud\generators\Generator::class,
    'showName' => "YOUR AJAX CRUD GENERATOR",
];

快乐飞艇You can then access Gii through the following URL:

and you can see YOUR AJAX CRUD GENERATOR

exp1exp2exp3

亿速云
    没有找到数据。
您需要登录后才可以评论。登录 | 马上注册