avitamin / yii-elfinder
扩展,用于在yii 1应用程序中使用elFinder 1.x文件管理器
1.0.0
2013-04-15 13:09 UTC
This package is auto-updated.
Last update: 2024-09-29 05:48:45 UTC
README
-
将源代码检出至您的项目,例如到ext.elFinder
-
为连接器动作创建控制器,并配置其参数
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 - 使用此小部件通过ElFinder弹出窗口在服务器上选择文件
$this->widget('ext.elFinder.ServerFileInput', array( 'model' => $model, 'attribute' => 'serverFile', 'connectorRoute' => 'admin/elfinder/connector', ) );
-
ImageFileInput - 与ServerFileInput类似。显示小图像预览而不是文件的文本路径。
$this->widget('ext.elFinder.ImageFileInput', array( 'model' => $model, 'attribute' => 'imageFile', 'connectorRoute' => 'admin/elfinder/connector', ) );
-
ElFinderWidget - 使用此小部件管理文件
$this->widget('ext.elFinder.ElFinderWidget', array( 'connectorRoute' => 'admin/elfinder/connector', ) );
-
有关TinyMceElFinder的信息,请参阅: https://bitbucket.org/z_bodya/yii-tinymce