Skip to content

MyLittleParis/KCFinderBundleV2

 
 

Repository files navigation

README

The bundle provides a KCFinder for CKEditor integration for your Symfony Project

Migration from KCFinderBundle

You're probably coming here because you updated mylittleparis/sonata-bundle to v3.1 or v4.1. When migrating from KCFinderBundle, you need to change config.yml, routing.yml and AppKernel.php.

Example: https://github.com/MyLittleParis/my-little-paris/pull/1402/files

Documentation

Installation

Register the bundle:

// app/AppKernel.php

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

Install the bundle:

$ composer require mylittleparis/kcfinder-bundle-v2

Add routing, and ⚠️ be careful ⚠️ about your admin prefix

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

Configuration

The bundle allow to change base_path to kcfinder folder and you can define as many configs you want.

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

License

The Ikadoc KCFinder Bundle is under the MIT license. For the full copyright and license information, please read the LICENSE file that was distributed with this source code.