Skip to content

yii-dream-team/yii2-reflink-behavior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Yii2 file/image upload behavior for ActiveRecord

FileUploadBehavior

This behavior allow you to add file and image uploading logic with ActiveRecord behavior.

Usage

Attach the behavior to your controller class:

public function behaviors()
{
    return [
        'reflink' => [
            'class' => '\yiidreamteam\reflink\ReflinkBehavior',
            'queryParam' => 'ref',
            'sessionVar' => 'referrerId',
        ],
    ];
}

Use

$this->getReferrerId();

Licence

MIT

Contacts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages