PHPackages                             maddoger/yii2-elfinder - 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. [Framework](/categories/framework)
4. /
5. maddoger/yii2-elfinder

ActiveYii2-extension[Framework](/categories/framework)

maddoger/yii2-elfinder
======================

Yii2 elfinder Widgets

v1.1(7y ago)0491BSD-3-ClauseJavaScript

Since Nov 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/maddoger/yii2-elfinder)[ Packagist](https://packagist.org/packages/maddoger/yii2-elfinder)[ Docs](http://www.frenzel.net/)[ RSS](/packages/maddoger-yii2-elfinder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

maddoger/elfinder
=================

[](#maddogerelfinder)

Thanks to:

Thanks to: zybodya 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:

Add this to your composer.json require section

```
  "maddoger/elfinder": "dev-master",
```

After that add into your controller the following function

```
public function actions()
  {
    return array(
      'connector' => array(
        'class' => 'maddoger\elfinder\ConnectorAction',
        'clientOptions'=>array(
          'locale' => '',
          'debug'  => false,
            'roots'  => array(
                array(
                    'driver' => 'LocalFileSystem',
                    'path'   => dirname(__DIR__).'/../www/img/cms/',
                    'URL'    => '',
                )
            )
        )
      )
    );
  }
```

And finaly the view should look like this:

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

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

$this->title = 'File Manager';

?>
