[EXTENSION] elFinder Widget

This widget builds an elFinder (http://elfinder.org) instance that will allow you to upload files easily. There are not file edits required. All you have to do is pass the right properties to the widget instance and it will do the rest.

Extension Page

Hello,

Having difficulties to use, where can I see a usage example?

Thanks,

Eyal

The documentation and the example provided in the actual extension page is the usage example.

Unable connect to backend

Trying your widget elFinder answer: Unable connect to backend

but if i get connector http://localhost/site/index.php?r=details/elfinder.connector it answers: {"error":["errConf","errNoVolumes"]}

widget’s config:


<div id="elfinder">


<?php  $this->widget('application.widgets.elfinder.FinderWidget', array(

                        'path' => '/images', // path to your uploads directory, must be writeable 

                        'url' => 'http://localhost/site/images/', // url to uploads directory 

                        'action' => $this->createUrl('Details/elfinder.connector') // the connector action (we assume we are pasting this code in the sitecontroller view file)

                    ));  ?>







</div>

I am using yiii 1.1.8

I’m having the same issue, not able to connect to the backend. Has anyone had any luck figuring this out?

Firebug gave me some decent info that may help.


<h1>PHP Error [2]</h1>

<p>include(finfo.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory (C:\wamp\www\yii\framework\YiiBase.php:421)</p>

<pre>#0 C:\wamp\www\yii\framework\YiiBase.php(421): CWebApplication->handleError()

#1 C:\wamp\www\yii\framework\YiiBase.php(421): autoload()

#2 unknown(0): autoload()

#3 unknown(0): spl_autoload_call()

#4 C:\wamp\www\neponset\protected\widgets\elFinder\php\elFinderVolumeDriver.class.php(634): class_exists()

#5 C:\wamp\www\neponset\protected\widgets\elFinder\php\elFinder.class.php(214): elFinderVolumeLocalFileSystem->mount()

#6 C:\wamp\www\neponset\protected\widgets\elFinder\actions\connector.php(32): elFinder->__construct()

#7 C:\wamp\www\yii\framework\web\actions\CAction.php(72): connector->run()

#8 C:\wamp\www\yii\framework\web\CController.php(300): connector->runWithParams()

#9 C:\wamp\www\yii\framework\web\filters\CFilterChain.php(134): JobsController->runAction()

#10 C:\wamp\www\yii\framework\web\filters\CFilter.php(41): CFilterChain->run()

#11 C:\wamp\www\yii\framework\web\CController.php(1144): CAccessControlFilter->filter()

#12 C:\wamp\www\yii\framework\web\filters\CInlineFilter.php(59): JobsController->filterAccessControl()

#13 C:\wamp\www\yii\framework\web\filters\CFilterChain.php(131): CInlineFilter->filter()

#14 C:\wamp\www\yii\framework\web\CController.php(283): CFilterChain->run()

#15 C:\wamp\www\yii\framework\web\CController.php(257): JobsController->runActionWithFilters()

#16 C:\wamp\www\yii\framework\web\CWebApplication.php(277): JobsController->run()

#17 C:\wamp\www\yii\framework\web\CWebApplication.php(136): CWebApplication->runController()

#18 C:\wamp\www\yii\framework\base\CApplication.php(158): CWebApplication->processRequest()

#19 C:\wamp\www\neponset\index.php(13): CWebApplication->run()

</pre>

Looks like it’s trying to grab a class finfo.php that doesn’t exist. Can anyone make sense of this?

Well I figured out my issue. Apparently the elfinder was trying to automatically determine the mime type location. I changed it to manually reference the file and all is well. Thanks for the excellent extension!