sheillendra / yii2-jeasyui

此包最新版本(v2.0.1.1)没有提供许可证信息。

在Yii2上实现jQuery EasyUI GPL版

安装: 958

依赖者: 0

建议者: 0

安全: 0

星标: 18

关注者: 7

分支: 19

开放问题: 2

语言:CSS

类型:yii2-extension

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

This package is auto-updated.

Last update: 2024-08-26 21:17:26 UTC


README

在Yii2上实现jQuery EasyUI GPL版。

静态演示

安装

建议通过composer安装此扩展。

运行

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

或添加

"sheillendra/yii2-jeasyui": "2.0.1.1"

到你的composer.json文件的require部分。

使用方法

在此情况下使用了高级模板和后端

修改 backend/config/main.php 如下

    '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)