2017 © Pedro Peláez
 

yii2-extension yii2-hyperlinks

Yii2-hyperlinks is a module and set of functionality to add hyperlinks to a model in a generic way

image

asinfotrack/yii2-hyperlinks

Yii2-hyperlinks is a module and set of functionality to add hyperlinks to a model in a generic way

  • Wednesday, May 2, 2018
  • by asinfotrack
  • Repository
  • 3 Watchers
  • 1 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 155 % Grown

The README.md

Yii2-hyperlinks

Yii2-hyperlinks is a module and set of functionality to add hyperlinks to a model in a generic way, (*1)

Installation

Basic installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

$ composer require asinfotrack/yii2-hyperlinks

or add, (*4)

"asinfotrack/yii2-hyperlinks": "~0.8.0"

to the require section of your composer.json file., (*5)

Migration

After downloading you need to apply the migration creating the required tables:, (*6)

yii migrate --migrationPath=@vendor/asinfotrack/yii2-hyperlinks/migrations

To remove the table just do the same migration downwards., (*7)

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., (*8)

Changelog

  • dependency update (__potential breaking change!__)
  • bottons arrangement changed
  • bug fix hyper link create
  • bug fix label translation
  • bottons arrangement changed
  • bug fix pop up client validation
  • changed url attribute in grid widget for @web
  • changed url validator to use @web
  • 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.

The Versions

02/05 2018

dev-master

9999999-dev

Yii2-hyperlinks is a module and set of functionality to add hyperlinks to a model in a generic way

  Sources   Download

MIT

The Requires

 

yii2 bundle module widget behavior action hyperlink hyperlinks

02/05 2018

0.8.0

0.8.0.0

Yii2-hyperlinks is a module and set of functionality to add hyperlinks to a model in a generic way

  Sources   Download

MIT

The Requires

 

yii2 bundle module widget behavior action hyperlink hyperlinks