bupy7 / yii2-widget-cropbox

This widget allows crop image before upload to server and send informations about crop in JSON format.
BSD 3-Clause "New" or "Revised" License
91 stars 33 forks source link

Class 'bupy7\cropbox\Cropbox' not found #48

Closed asifrafeeq closed 6 years ago

asifrafeeq commented 6 years ago

i m using version v3.0.1. in my view i am including

use bupy7\cropbox\Cropbox;

<?php $form = ActiveForm::begin([
                'options' => ['enctype'=>'multipart/form-data'],
            ]); ?>
  <?php echo $form->field($model, 'image')->widget(Cropbox::className(), [
                'attributeCropInfo' => 'crop_info',
                'optionsCropbox' => [
                    'boxWidth' => 400,
                    'boxHeight' => 300,
                    'cropSettings' => [
                        [
                            'width' => 350,
                            'height' => 200,
                        ],
                    ],
                ],
            ]); ?>

but it gives me the error

PHP Fatal Error – yii\base\ErrorException

Class 'bupy7\cropbox\Cropbox' not found