Logo white

Administrator / test_1

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • test_1
  • backend
  • models
  • UploadForm.php
  • first commit from local
    e07bc75d
    Administrator authored
    2015-11-17 13:55:55 +0200  
    Browse Code ยป
UploadForm.php 430 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<?php
namespace backend\models;

use yii\base\Model;
use yii\web\UploadedFile;

/**
 * UploadForm is the model behind the upload form.
 */
class UploadForm extends Model
{
    /**
     * @var UploadedFile file attribute
     */
    public $file;
    public $img;

    /**
     * @return array the validation rules.
     */
    public function rules()
    {
        return [
            [['file','img'], 'file'],
        ];
    }
}