コード例 #1
0
ファイル: Video.php プロジェクト: xuhongxu96/BNU-Media
 /**
  * @inheritdoc
  */
 public function rules()
 {
     return array_merge(parent::rules(), [[['imageFile'], 'file', 'skipOnEmpty' => true, 'maxSize' => 2097152]]);
 }