sheillendra/yii2-jeasyui

There is no license information available for the latest version (v2.0.1.1) of this package.

Implement jQuery EasyUI GPL Edition on Yii2

Installs: 959

Dependents: 0

Suggesters: 0

Security: 0

Stars: 18

Watchers: 7

Forks: 19

Open Issues: 2

Language:CSS

Type:yii2-extension

v2.0.1.1 2023-12-21 03:40 UTC

This package is auto-updated.

Last update: 2024-10-26 21:44:25 UTC


README

Implement jQuery EasyUI GPL Edition on Yii2.

Static Demo

INSTALLATION

The preferred way to install this extension is through composer.

Either run

php composer.phar require sheillendra/yii2-jeasyui "2.0.1.1"

or add

"sheillendra/yii2-jeasyui": "2.0.1.1"

to the require section of your composer.json file.

USAGE

In this case used advanced template and backend

Change backend/config/main.php like this :

    'bootstrap' => ['log', 'devicedetect'],
    //remove jeasyui controller map if you have understand and want unwatch the default simulation
    //keep it to use login default
    'controllerMap' => [
        'jeasyui' => 'sheillendra\jeasyui\controllers\JeasyuiController'
    ],
    'components' =>[
        #... other 
        'user' => [
            #... other
            //change the line below if you understand the UserModel login action in jeasyui controller
            'identityClass' => 
            'urlLogin' => ['/jeasyui/login']
        ],
        'view' => [
            'theme' => [
                'pathMap' => [
                    '@app/views' => [
                        '@app/themes/jeasyui/views',
                        '@sheillendra/jeasyui/views',
                    ],
                    '@app/modules' => [
                        '@app/themes/jeasyui/modules',
                        '@sheillendra/jeasyui/modules',
                    ],
                    '@app/widgets' => [
                        '@app/themes/jeasyui/widgets',
                        '@sheillendra/jeasyui/widgets',
                    ]
                ],
            ],
        ],
        'devicedetect' => [
            'class' => 'sheillendra\jeasyui\components\devicedetect\DeviceDetect'
        ],
    ]

GII

// config/main-local.php        for yii2-app-advanced
// config/web.php               for yii2-basic
...
if (!YII_ENV_TEST) {
    // configuration adjustments for 'dev' environment 
    ...
    
    $config['modules']['gii'] = [
        'class'=>'yii\gii\Module',
       'generators' =>[
           'jeasyui-crud' => ['class'=>'sheillendra\jeasyui\gii\generators\crud\Generator']
        ]
    ];
}

yii.easyui.min.js

Method :
.showMainMask()
.hideMainMask()
.cookie.set(name, value, days, path)
.cookie.get(name)
.cookie.delete(name, path)