1. Bogdan Savluk
  2. yii-elFinder

Source

yii-elFinder /

Filename Size Date modified Message
assets
php
47 B
Added tag 1.0.0 for changeset 639348b24b9a
297 B
Separate repository for extension
3.2 KB
remove duplicated CSRF protection meta tags
5.0 KB
fixed query 1.8 compatibility, added CSRF validation support, added i18n support, begin using compressed script when not debuging
4.2 KB
remove duplicated CSRF protection meta tags
424 B
composer integration
1.5 KB
Readme
342 B
fixed query 1.8 compatibility, added CSRF validation support, added i18n support, begin using compressed script when not debuging
153 B
fixed query 1.8 compatibility, added CSRF validation support, added i18n support, begin using compressed script when not debuging

ElFinder 1.x Yii extension

  1. Checkout source code to your project, for example to ext.elFinder
  2. Create controller for connector action, and configure it params

    class ElfinderController extends CController
    {
        public function actions()
        {
            return array(
                'connector' => array(
                    'class' => 'ext.elFinder.ElFinderConnectorAction',
                    'settings' => array(
                        'root' => Yii::getPathOfAlias('webroot') . '/uploads/',
                        'URL' => Yii::app()->baseUrl . '/uploads/',
                        'rootAlias' => 'Home',
                        'mimeDetect' => 'none'
                    )
                ),
            );
        }
    }
    
  3. ServerFileInput - use this widget to choose file on server using ElFinder pop-up

      $this->widget('ext.elFinder.ServerFileInput', array(
              'model' => $model,
              'attribute' => 'serverFile',
              'connectorRoute' => 'admin/elfinder/connector',
              )
      );
    
    1. ElFinderWidget use this widget to manage files

      $this->widget('ext.elFinder.ElFinderWidget', array( 'connectorRoute' => 'admin/elfinder/connector', ) );

  4. To use TinyMceElFinder see: https://bitbucket.org/z_bodya/yii-tinymce