Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 function behaviors()
 {
     return [['class' => CropImageUploadBehavior::className(), 'attribute' => 'imagen', 'scenarios' => ['insert', 'update'], 'path' => '@webrootfrontend/imagenes/paginas', 'url' => '@webfrontend/imagenes/paginas', 'ratio' => 1, 'crop_field' => 'imagen_crop', 'cropped_field' => 'imagen_cortada']];
 }
Exemplo n.º 2
0
 function behaviors()
 {
     return [['class' => CropImageUploadBehavior::className(), 'attribute' => 'photo', 'scenarios' => ['insert', 'update'], 'path' => '@webroot/uploads', 'url' => '@web/uploads', 'ratio' => 1, 'crop_field' => 'photo_crop', 'cropped_field' => 'photo_cropped']];
 }