2017 © Pedro Peláez
 

yii2-extension yii2-upload-behavior

Yii2 Upload File Behavior

image

yiidoc/yii2-upload-behavior

Yii2 Upload File Behavior

  • Tuesday, June 2, 2015
  • by zinzinday
  • Repository
  • 2 Watchers
  • 1 Stars
  • 47 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii2 Upload File Behavior

Yii2 Upload File Behavior, (*1)

Installation

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

Either run, (*3)

composer require --prefer-dist yiidoc/yii2-upload-behavior "*"

or add, (*4)

"yiidoc/yii2-upload-behavior": "*"

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

Usage

Once the extension is installed, simply use it in your code by :, (*6)

    public function behaviors()
    {
        return [
            [
                'class' => 'yii\behaviors\UploadFileBehavior',
                'attribute' => 'picture',
                'uploadDir' => '@webroot/uploads/user/pictures'
            ]
        ];
    }

The Versions

02/06 2015

dev-master

9999999-dev

Yii2 Upload File Behavior

  Sources   Download

MIT

The Requires

 

by Avatar zinzinday

extension yii2

02/06 2015

2.0.0

2.0.0.0

Yii2 Upload File Behavior

  Sources   Download

MIT

The Requires

 

by Avatar zinzinday

extension yii2