https://github.com/philippfrenzel/yii2elfinder
yii2elfinder
https://github.com/philippfrenzel/yii2elfinder
Last synced: 3 months ago
JSON representation
yii2elfinder
- Host: GitHub
- URL: https://github.com/philippfrenzel/yii2elfinder
- Owner: philippfrenzel
- Created: 2013-06-18T15:17:48.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-01-28T15:36:44.000Z (over 10 years ago)
- Last Synced: 2025-03-23T10:51:11.653Z (4 months ago)
- Language: JavaScript
- Size: 1.85 MB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
yii2elfinder
============Thanks to:
https://github.com/Studio-42/elFinderThanks to:
zybodya for the current yii versionyii2elfinder
============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
```json
"philippfrenzel/yii2elfinder": "dev-master",
```After that add into your controller the following function
```php
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:
```php
use yii\helpers\Html;
use yii2elfinder\yii2elfinder;/**
* @var yii\base\View $this
*/$this->title = 'File Manager';
?>
title); ?>
'site/connector',
)
);
?>
```