承接 maddoger/yii2-elfinder 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

maddoger/yii2-elfinder

最新稳定版本:v1.1

Composer 安装命令:

composer require maddoger/yii2-elfinder

包简介

Yii2 elfinder Widgets

README 文档

README

Thanks to: https://github.com/Studio-42/elFinder

Thanks to: zybodya for the current yii version

yii2elfinder

Intro: The old version could not be used, as it's completly not working with the latest jquery version! So apart from the action, i had to change everything;)

This extension allows you to integrate ElFinder file manager into your Yii web site's pages. Comparing with elfinder-widget extension this one is implemented with an attempt to provide a more flexible way to configure both ElFinder's client and connector. The extension also relies on the latest release of ElFinder 2.0-rc1 (10th of April, 2012).

How to install:

Add this to your composer.json require section

  "maddoger/elfinder": "dev-master",

After that add into your controller the following function

public function actions()
  {
    return array(
      'connector' => array(
        'class' => 'maddoger\elfinder\ConnectorAction',
        'clientOptions'=>array(
          'locale' => '',
          'debug'  => false,
            'roots'  => array(
                array(
                    'driver' => 'LocalFileSystem',
                    'path'   => dirname(__DIR__).'/../www/img/cms/',
                    'URL'    => '',
                )
            )   
        )
      )
    );
  }

And finaly the view should look like this:

use yii\helpers\Html;
use maddoger\elfinder\yii2elfinder;

/**
 * @var yii\base\View $this
 */

$this->title = 'File Manager';

?>

<h1><?php echo Html::encode($this->title); ?></h1>

<?php
echo yii2elfinder::widget(
  array(
    'connectorRoute' => 'site/connector',
  )
);
?>

统计信息

  • 总下载量: 48
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-03-30