2017 © Pedro Peláez
 

yii2-extension yii2-elfinder

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

image

zxbodya/yii2-elfinder

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

  • Monday, October 23, 2017
  • by zxbodya
  • Repository
  • 3 Watchers
  • 9 Stars
  • 9,392 Installations
  • JavaScript
  • 5 Dependents
  • 1 Suggesters
  • 12 Forks
  • 6 Open issues
  • 4 Versions
  • 7 % Grown

The README.md

ElFinder 1.x Yii2 extension

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

Extension is rework from Yii 1.1 extension:, (*2)

https://github.com/zxbodya/yii-elfinder, (*3)

Installation

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

Either run, (*5)

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

or add, (*7)

"zxbodya/yii2-elfinder": "*@dev", (*8)

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

Backend controller configuration

namespace backend\controllers;         
use Yii;       
use yii\web\Controller;         
use zxbodya\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, (*10)

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/zxbodya/yii2-tinymce, (*11)

The Versions

23/10 2017

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Bogdan Savluk

extension yii2 widget tinymce elfinder file manager

23/10 2017

v2.0.0

2.0.0.0

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

  Sources   Download

MIT

The Requires

 

by Bogdan Savluk

extension yii2 widget tinymce elfinder file manager

20/07 2016

dev-input_options

dev-input_options

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

  Sources   Download

MIT

The Requires

 

by Bogdan Savluk

extension yii2 widget tinymce elfinder file manager

30/09 2014

dev-yii-1.1

dev-yii-1.1

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

  Sources   Download

BSD-3-Clause

by Bogdan Savluk

widget tinymce file manager