2017 © Pedro Peláez
 

yii2-extension yii2elfinder

Yii2 elfinder Widgets

image

a70838697/yii2elfinder

Yii2 elfinder Widgets

  • Tuesday, June 21, 2016
  • by a70838697
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

I'v tested many yii2 elfinder on git hub. Either it is harded to use, or has no detailed instructions until I found philippfrenzel's version. It worked!, (*1)

I did some work to integrate latest elFinder-2.1.12, and have fixed bugs concering local zh_CN., (*2)

There is a demo website http://www.dawoma.com/download/yii2elfinder where you can download offline package and sample files., (*3)

yii2elfinder

Thanks to: https://github.com/Studio-42/elFinder, (*4)

Thanks to: zybodya for the current yii version philippfrenzel for the current yii version, (*5)

yii2elfinder

Intro: The old version could not be used, as it's completly not working with the latest jquery version! So apart from the action, i had to change everything;), (*6)

This extension allows you to integrate ElFinder file manager into your Yii web site's pages. Comparing with elfinder-widget extension this one is implemented with an attempt to provide a more flexible way to configure both ElFinder's client and connector. The extension also relies on the latest release of ElFinder 2.0-rc1 (10th of April, 2012)., (*7)

How to install: yii2elfinder needs yii-jui at https://github.com/yiisoft/yii2-jui which depends on Jquery UI 1.11 above https://blog.jqueryui.com/2014/06/jquery-ui-1-11-0/., (*8)

You can install this package manually by downloading the ziped file, extracting it under verndor/philippfrenze. Add two line to your config/web.php, (*9)

    'aliases' => [
        '@yii2elfinder' => '@vendor/yii2elfinder',
        '@yii/jui' => '@vendor/yiisoft/yii2-jui',
    ],

Add this to your composer.json require section, (*10)

  "a70838697/yii2elfinder": "dev-master",

After that add into your controller such as "DownloadControl.php" the following function, (*11)

public function actions()
  {
    return array(
      'connector' => array(
        'class' => 'yii2elfinder\ConnectorAction',
        'clientOptions'=>array(
          'locale' => '',
          'debug'  => false,
            'roots'  => array(
                array(
                    'driver' => 'LocalFileSystem',
                    'path'   => dirname(__DIR__).'/../../uploads',
                    'URL'    => '',
                )
            )   
        )
      )
    );
  }

And finaly the view should look like this:, (*12)


use yii\helpers\Html; use yii2elfinder\yii2elfinder; /** * @var yii\base\View $this */ $this->title = 'File Manager'; ?>

title); ?>

'download/connector', ) ); ?>

The Versions

21/06 2016

dev-master

9999999-dev http://www.frenzel.net/

Yii2 elfinder Widgets

  Sources   Download

BSD-3-Clause

The Requires

 

by Bodgan Savluk

framework yii yii2 elfinder filemaneger