<?php
namespace wdigital\cms\inspinia\widgets;

use yii\base\Widget;

/**
 * FileInput widget
 */
class FileInput extends Widget
{

    public $name;
    public $multiple;
    public $model;
    public $errorField;


    public function run() {
        return $this->render('fileinput', [
            'name' => $this->name,
            'multiple' => $this->multiple,
            'errors' => $this->model->getErrors($this->errorField)
        ]);
    }
}
