jinowom/yii2jajaxcrud

Gii CRUD template for Single Page Ajax Administration for yii2

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.0.6 2025-02-14 10:29 UTC

This package is auto-updated.

Last update: 2025-02-14 11:24:52 UTC


README

Latest Stable Version License Total Downloads

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 composer.

Either run

php composer.phar require --prefer-dist jinowom/yii2jajaxcrud "^2.1"
or
php composer.phar require --prefer-dist jinowom/yii2jajaxcrud "^3.0"

or add

"jinowom/yii2jajaxcrud": "^2.1"
or
"jinowom/yii2jajaxcrud": "^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']['jinowommodel'] = [
    'class' => \jinowom\jajaxcrud\generators\model\Generator::class,
    'showName' => "YOUR MODEL GENERATOR",
];
$config['modules']['gii']['generators']['jinowomjajaxcrud'] = [
    'class' => \jinowom\jajaxcrud\generators\crud\Generator::class,
    'showName' => "YOUR AJAX CRUD GENERATOR",
];

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

exp1 exp2 exp3