2017 © Pedro Peláez
 

yii2-extension yii2-attach-file

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

image

rezident/yii2-attach-file

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  • Saturday, April 15, 2017
  • by rezident
  • Repository
  • 0 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 18 Versions
  • 0 % Grown

The README.md

yii2-attach-file

This extension for yii2 allows you to attach different uploaded files to models. The extension is not done! It does not work! Version 0.9 for testing in the real project., (*1)

Configuration

To use this extension, simply add the following code in your application configuration:, (*2)

return [
    //.....
    'modules' => [
        //.....
        'attach_file' => [
            'class' => rezident\attachfile\AttachFileModule::class,
            'originalsPath' => '@app/files/originals',
            'viewsPath' => '@app/files/views',
            'webPath' => '@app/files/views'
        ]
    ]
];

Usage

Adding behavior to the model

To adding behavior to the model you have to, (*3)

public function behaviors()
{
    return [
        'specified' => [
            'class' => rezident\attachfile\behaviors\AttachFileBehavior::class,
            'modelKey' => 'specified' // If it is not specified, will be used the short name of the model class
        ]
    ];
}

The Versions

15/04 2017

dev-master

9999999-dev

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

15/04 2017

dev-develop

dev-develop

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

15/04 2017

dev-release/2.1.0

dev-release/2.1.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

15/04 2017

0.9.14

0.9.14.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

15/04 2017

0.9.13

0.9.13.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

15/04 2017

0.9.12

0.9.12.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

15/04 2017

0.9.11

0.9.11.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

14/04 2017

0.9.10

0.9.10.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

14/04 2017

0.9.9

0.9.9.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

13/04 2017

0.9.8

0.9.8.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

13/04 2017

0.9.7

0.9.7.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

13/04 2017

0.9.6

0.9.6.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

13/04 2017

0.9.5

0.9.5.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

13/04 2017

0.9.4

0.9.4.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

13/04 2017

0.9.3

0.9.3.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

12/04 2017

0.9.2

0.9.2.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

09/04 2017

0.9.1

0.9.1.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko

08/04 2017

0.9.0

0.9.0.0

This extension for yii2 allows you to attach different uploaded files to models and to represent ones in the different views

  Sources   Download

MIT

The Requires

 

by Yuri Nazarenko