z_bodya/yii-elfinder
Composer 安装命令:
composer require z_bodya/yii-elfinder
包简介
Extension to use elFinder 1.x file manager in yii application
README 文档
README
-
Checkout source code to your project, for example to ext.elFinder
-
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' ) ), ); } } -
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', ) ); -
ImageFileInput - similar to ServerFileInput. Displays small image preview instead of textual path to file.
$this->widget('ext.elFinder.ImageFileInput', array( 'model' => $model, 'attribute' => 'imageFile', 'connectorRoute' => 'admin/elfinder/connector', ) ); -
ElFinderWidget use this widget to manage files
$this->widget('ext.elFinder.ElFinderWidget', array( 'connectorRoute' => 'admin/elfinder/connector', ) ); -
To use TinyMceElFinder see: https://bitbucket.org/z_bodya/yii-tinymce
统计信息
- 总下载量: 2.18k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2013-04-15