예제 #1
0
 /**
  * @inheritdoc
  */
 function behaviors()
 {
     return [['class' => UploadBehavior::className(), 'attribute' => 'file', 'scenarios' => ['insert', 'update'], 'path' => '@webroot/upload/docs/{id}', 'url' => '@web/upload/docs/{id}']];
 }