yii-elFinder /

Filename Size Date modified Message
assets
php
297 B
2.1 KB
4.0 KB
3.1 KB
1.4 KB
223 B
107 B

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

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.