Код: Выделить всё
cmposer require --prefer-dist mackrais/yii2-crop-image-section "dev-master"
Код: Выделить всё
<?php $form = ActiveForm::begin(); ?>
................
...............
...............
<?php
echo '<label>Cropping section</label>';
echo $form->field($model, "image")->widget(mackrais\cropimage\ImageCropSection::className(), [
'options' => [
'id' => 'mr_file_input1',
'class' => 'hidden',
],
'attribute_x'=>'section1_x',https://github.com/mackrais/yii2-crop-image-section
'attribute_y'=>'section1_y',
'attribute_width'=>'section1_w',
'attribute_height'=>'section1_h',
'attribute_scale'=>'section1_scale',
'attribute_remove'=>'section1_remove',
'class_block'=>'center-block',
'plugin_options' => [
'width' => 400,
'height' => 400,
'id_input_file' => 'mr_file_input1',
'section' => 'section_1'
],
'template_image'=> null
])->label(false);
?>
..................
.................
.................
<?php ActiveForm::end(); ?>
Подскажите пожалуйста, что ни так, и как с этим бороться?The file or directory to be published does not exist: /var/www/html/my_site.loc/public_html/widgets/MrCropImageSection/assets