PHP code example of rahulabs / yii2-img-selector
1. Go to this page and download the library: Download rahulabs/yii2-img-selector library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rahulabs / yii2-img-selector example snippets
Yii::$container->set('rahulabs\yii2\imgSelector\ImageSelector', [
'fileManagerPathTpl' => '/adm-scripts/responsivefilemanager/filemanager/dialog.php?type=1&field_id=%s&relative_url=0&callback=ImageSelectorCallBack'
]);
echo $form
->field($model, 'main_image')
->widget(\rahulabs\yii2\imgSelector\ImageSelector::className());