https://github.com/rezaei121/yii2-jcrop
Installation ¶
The preferred way to install this extension is through composer.
Either run php composer.phar require --prefer-dist developit/yii2-jcrop "" or add "developit/yii2-jcrop": ""
Usage ¶
Once the extension is installed, simply use it in your code by :
use developit\jcrop\Jcrop;
<?= $form->field($model, 'avatar')->widget(Jcrop::className(), [
'uploadUrl' => Url::toRoute('/user/avatar'),
])->label(false) ?>
GPL3 isn't Yiish! I will skip it in favor of https://github.com/krivochenko/yii2-cropper
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.