PHP code example of lg-xenos / yii2-img-selector

1. Go to this page and download the library: Download lg-xenos/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/ */

    

lg-xenos / yii2-img-selector example snippets


Yii::$container->set('lgxenos\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(\lgxenos\yii2\imgSelector\ImageSelector::className());