asinfotrack/yii2-hyperlinks
Composer 安装命令:
composer require asinfotrack/yii2-hyperlinks
包简介
Yii2-hyperlinks is a module and set of functionality to add hyperlinks to a model in a generic way
README 文档
README
Yii2-hyperlinks is a module and set of functionality to add hyperlinks to a model in a generic way
Installation
Basic installation
The preferred way to install this extension is through composer.
Either run
$ composer require asinfotrack/yii2-hyperlinks
or add
"asinfotrack/yii2-hyperlinks": "~0.8.0"
to the require section of your composer.json file.
Migration
After downloading you need to apply the migration creating the required tables:
yii migrate --migrationPath=@vendor/asinfotrack/yii2-hyperlinks/migrations
To remove the table just do the same migration downwards.
Add the module to the yii-config
'modules'=>[ //your other modules... 'hyperlinks'=>[ 'class'=>'asinfotrack\yii2\hyperlinks\Module', 'userRelationCallback'=>function ($model, $attribute) { return $model->hasOne('app\models\User', ['id'=>$attribute]); }, 'backendAccessControl'=>[ 'class'=>'yii\filters\AccessControl', 'rules'=>[ ['allow'=>true, 'roles'=>['@']], ], ], ], ],
For a full list of options, see the attributes of the classes within the module. Especially check the classes
asinfotrack\yii2\hyperlinks\Module. Some examples are provided below.
Changelog
v1.0.0
- dependency update (potential breaking change!)
v0.8.5
- bottons arrangement changed
v0.8.4
- bug fix hyper link create
v0.8.3
- bug fix label translation
- bottons arrangement changed
v0.8.2
- bug fix pop up client validation
- changed url attribute in grid widget for @web
v0.8.1
- changed url validator to use @web
v0.8.0
- main classes in a stable condition
- further features will be added in a backwards-compatible way from here on
- all breaking changes will lead to a new minor version.
统计信息
- 总下载量: 454
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-27