PHPackages                             a70838697/yii2elfinder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. a70838697/yii2elfinder

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

a70838697/yii2elfinder
======================

Yii2 elfinder Widgets

011JavaScript

Since Jun 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/a70838697/yii2elfinder)[ Packagist](https://packagist.org/packages/a70838697/yii2elfinder)[ RSS](/packages/a70838697-yii2elfinder/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

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!

I did some work to integrate latest elFinder-2.1.12, and have fixed bugs concering local zh\_CN.

There is a demo website  where you can download offline package and sample files. yii2elfinder
===========================================================================================================================================

[](#there-is-a-demo-website-httpwwwdawomacomdownloadyii2elfinder-where-you-can-download-offline-package-and-sample-filesyii2elfinder)

Thanks to:

Thanks to: zybodya for the current yii version philippfrenzel for the current yii version

yii2elfinder
============

[](#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;)

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).

How to install: yii2elfinder needs yii-jui at  which depends on Jquery UI 1.11 above .

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

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

Add this to your composer.json require section

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

After that add into your controller such as "DownloadControl.php" the following function

```
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:

```
use yii\helpers\Html;
use yii2elfinder\yii2elfinder;

/**
 * @var yii\base\View $this
 */

$this->title = 'File Manager';

?>
