zxbodya/yii2-elfinder
最新稳定版本:v2.0.0
Composer 安装命令:
composer require zxbodya/yii2-elfinder
包简介
Extension to use elFinder 1.x file manager in Yii2 application
README 文档
README
Extension to simplify adding elFinder to Yii2 project.
Extension is rework from Yii 1.1 extension:
https://github.com/zxbodya/yii-elfinder
##Installation The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist zxbodya/yii2-elfinder "*@dev"
or add
"zxbodya/yii2-elfinder": "*@dev"
to the require section of your composer.json file.
Backend controller configuration
namespace backend\controllers; use Yii; use yii\web\Controller; use zxbodya\yii2\elfinder\ConnectorAction; class ElFinderController extends Controller { public function actions() { return [ 'connector' => array( 'class' => ConnectorAction::className(), 'settings' => array( 'root' => Yii::getAlias('@webroot') . '/uploads/', 'URL' => Yii::getAlias('@web') . '/uploads/', 'rootAlias' => 'Home', 'mimeDetect' => 'none' ) ), ]; } }
Widgets usage
FileInput
widget to choose file on server using ElFinder pop-up
echo $form->field($model, 'filePath')->widget( ElFinderInput::className(), ['connectorRoute' => 'el-finder/connector',] )
ElFinderWidget
echo ElFinderWidget::widget( ['connectorRoute' => 'el-finder/connector',] )
TinyMce integration
Widgets supports intergation with TinyMce wysiwyg editor For more details see tinymce extension https://github.com/zxbodya/yii2-tinymce
统计信息
- 总下载量: 34.36k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2014-10-01