ikadoc/kcfinder-bundle

为您的 Symfony 项目提供 KCFinder 集成。

安装次数: 13,252

依赖者: 2

建议者: 0

安全性: 0

星标: 6

关注者: 2

分支: 5

开放问题: 1

类型:symfony-bundle

1.1 2016-03-17 15:15 UTC

This package is auto-updated.

Last update: 2024-08-28 22:29:19 UTC


README

该包为您的 Symfony 项目提供KCFinder集成CKEditor

文档

安装

此包需要[kcfinder],但 Composer 在 require 中无法加载它,因此请将其手动添加到您的 composer.json 文件中。

// composer.json
"sunhater/kcfinder": "dev-master"

在 composer.json 文件中引入此包。

$ composer require ikadoc/kcfinder-bundle --no-update

注册包

// app/AppKernel.php

public function registerBundles()
{
    return array(
        new Ikadoc\KCFinderBundle\IkadocKCFinderBundle(),
        // ...
    );
}

安装包

$ composer update ikadoc/kcfinder-bundle

添加路由

// app/config/routing.yml
kcfinder:
    resource: "@IkadocKCFinderBundle/Resources/config/routing.yml"
    prefix: /admin

配置

该包允许更改 base_path 为 kcfinder 文件夹,并且您可以定义您想要的任何配置。所有配置选项的列表可在此处找到。

ikadoc_kc_finder:
    base_path : "%kernel.root_dir%/../vendor/sunhater/kcfinder"
    config:
        disabled : false
        uploadURL: "/uploads/"
        uploadDir: "%kernel.root_dir%/../web/uploads/"

许可协议

Ikadoc KCFinder Bundle 采用 MIT 许可协议。有关完整的版权和许可信息,请参阅与源代码一起分发的LICENSE文件。