Download the PHP package dlds/yii2-attachments without Composer
On this page you can find all versions of the php package dlds/yii2-attachments. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-attachments
Yii2 attachments
Extension for file uploading and attaching to the models
Installation
-
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your
composer.json
file. -
Apply migrations
-
Add module to
config/main.php
-
Attach behavior to your model (be sure that your model has "id" property)
- Make sure that you have added
'enctype' => 'multipart/form-data'
to the ActiveForm options
Usage
-
In the
form.php
of your model add file input -
Use widget to show all attachments of the model in the
view.php
- (Optional) Add onclick action to your submit button that uploads all files before submitting form
Change log
- Feb 2, 2015 - Fix: all attached files will be deleted with the model.
- Feb 1, 2015 - AJAX or basic upload.
- Jan 30, 2015 - Several previews of images and other files, fix of required packages.
- Jan 29, 2015 - First version with basic uploading and previews.
All versions of yii2-attachments with dependencies
PHP Build Version
Package Version
The package dlds/yii2-attachments contains the following files
Loading the files please wait ....