2017 © Pedro Peláez
 

yii2-extension yii2-image-input

A Yii2input widget to allow a better drag drop image upload

image

consynki/yii2-image-input

A Yii2input widget to allow a better drag drop image upload

  • Friday, April 29, 2016
  • by levi-putna
  • Repository
  • 2 Watchers
  • 2 Stars
  • 937 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

Yii2 Image Input Field

This extension provides a drag drop image field to inclusion within a standard Yii2 form. This extension dosn't provide any functionality for uploading the images, that can be done via the standard Yii form processing., (*1)

Installation

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

To install, either run, (*3)

$ composer require consynki/yii2-image-input "*", (*4)

or add, (*5)

"consynki/yii2-image-input": "*", (*6)

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

Usage

Alert

You can use the image input in a standard Yii form., (*8)



    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'image')->widget(ImageInput::className(), [
        'value' => '/img/current-image.png' //Optional current value
    ]); ?>

= Html::submitButton('Save', []) ?>


You can pass in the optional value to display a default image as the current value of the field., (*9)

The Versions

29/04 2016

dev-master

9999999-dev

A Yii2input widget to allow a better drag drop image upload

  Sources   Download

MIT

The Requires

 

by Levi Putna

yii2 image input

05/02 2016

1.0.0

1.0.0.0

A Yii2input widget to allow a better drag drop image upload

  Sources   Download

MIT

The Requires

 

by Levi Putna

yii2 image input