2017 © Pedro Peláez
 

yii2-extension yii2-elfinder

Extension to use elFinder 1.x file manager in Yii2 application

image

vanquybn/yii2-elfinder

Extension to use elFinder 1.x file manager in Yii2 application

  • Monday, March 5, 2018
  • by vanquybn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 27 Installations
  • JavaScript
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

ElFinder 1.x Yii2 extension

Extension to simplify adding elFinder to Yii2 project., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist vanquybn/yii2-elfinder "*@dev", (*4)

or add, (*5)

"vanquybn/yii2-elfinder": "*@dev", (*6)

to the require section of your composer.json file., (*7)

Backend controller configuration

namespace backend\controllers;         
use Yii;       
use yii\web\Controller;         
use vanquybn\yii2\elfinder\ConnectorAction; 

class ElFinderController extends Controller         
{         
    public function actions()         
    {         
        return [         
            'connector' => array(         
                'class' => ConnectorAction::className(),         
                'settings' => array(         
                    'root' => Yii::getAlias('@webroot') . '/uploads/',                    
                    'URL' => Yii::getAlias('@web') . '/uploads/',         
                    'rootAlias' => 'Home',         
                    'mimeDetect' => 'none'         
                )                    
            ),         
        ];                    
    }         
}

Widgets usage

FileInput

widget to choose file on server using ElFinder pop-up, (*8)

echo $form->field($model, 'filePath')->widget(
    ElFinderInput::className(),
    ['connectorRoute' => 'el-finder/connector',]
)

ElFinderWidget

echo ElFinderWidget::widget(
    ['connectorRoute' => 'el-finder/connector',]
)

TinyMce integration

Widgets supports intergation with TinyMce wysiwyg editor For more details see tinymce extension https://github.com/vanquybn/yii2-tinymce, (*9)

The Versions

05/03 2018

dev-master

9999999-dev

Extension to use elFinder 1.x file manager in Yii2 application

  Sources   Download

MIT

The Requires

 

by Quinn Nguyen

extension yii2 widget tinymce elfinder file manager