dev-master
9999999-dev http://www.frenzel.net/Yii2 elfinder Widgets
BSD-3-Clause
The Requires
by Bodgan Savluk
framework yii yii2 elfinder filemaneger
Yii2 elfinder Widgets
Thanks to: https://github.com/Studio-42/elFinder, (*1)
Thanks to: zybodya for the current yii version, (*2)
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;), (*3)
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)., (*4)
How to install:, (*5)
Add this to your composer.json require section, (*6)
"philippfrenzel/yii2elfinder": "dev-master",
After that add into your controller the following function, (*7)
public function actions() { return array( 'connector' => array( 'class' => 'yii2elfinder\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:, (*8)
use yii\helpers\Html; use yii2elfinder\yii2elfinder; /** * @var yii\base\View $this */ $this->title = 'File Manager'; ?>title); ?>
'site/connector', ) ); ?>
Yii2 elfinder Widgets
BSD-3-Clause
framework yii yii2 elfinder filemaneger