asinfotrack/yii2-hyperlinks 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固