2017 © Pedro Peláez
 

library ws-referral-link

This package for hiding original link and show info about following

image

ws-cv-ua/ws-referral-link

This package for hiding original link and show info about following

  • Friday, September 1, 2017
  • by ws-cv-ua
  • Repository
  • 0 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

  1. Run command
composer require ws-cv-ua/ws-referral-link
  1. Run migration
yii migrate --migrationPath=@vendor/ws-cv-ua/ws-referral-link/migrations
  1. Set referral action in frontend controller. For example:
...
public function actions()
{
    return [
        ...
        'referral' => [
            'class' => '\wscvua\ws_referral_link\actions\ReferralAction',
        ],
        ...
    ];
}
...
  1. Set referral module in admin (backend) part of application. For example:
...
'modules' => [
    'referral' => [
        'class' => \wscvua\ws_referral_link\Module::className(),
        'adminPermission' => ['admin']
    ],
    ...
],
...

adminPermission is needle permission for access module, (*1)

  1. Referral widget example:
use wscvua\ws_referral_link\widgets\ReferralLink;

ReferralLink::widget([
    'url' => $url,
    'controller' => 'site'
]);

If controller field not set, then it will be have value of current controller, (*2)

The Versions

01/09 2017

dev-master

9999999-dev https://github.com/ws-cv-ua/ws-referral-link

This package for hiding original link and show info about following

  Sources   Download

MIT

The Requires

 

01/09 2017

1.0.0

1.0.0.0 https://github.com/ws-cv-ua/ws-referral-link

This package for hiding original link and show info about following

  Sources   Download

MIT

The Requires