sheillendra / yii2-jeasyui
此包最新版本(v2.0.1.1)没有提供许可证信息。
在Yii2上实现jQuery EasyUI GPL版
v2.0.1.1
2023-12-21 03:40 UTC
Requires
- bower-asset/c3: v0.4.18
- bower-asset/font-awesome: *
- mobiledetect/mobiledetectlib: ^4.8
- yiisoft/yii2: *
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)