Skip to content

Latest commit

 

History

History
84 lines (60 loc) · 1.71 KB

0-installation.md

File metadata and controls

84 lines (60 loc) · 1.71 KB

Chapter 0. Installation and your first File Manager

FileManager Project is a simple Multilingual File Manager Bundle for symfony

Installation

Step 1: Download the Bundle

$ composer require artgris/filemanager-bundle

Step 2: Enable the Bundle

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Artgris\Bundle\FileManagerBundle\ArtgrisFileManagerBundle(),
        );
    }

    // ...
}

Step 3: Load the Routes

# app/config/routing.yml
artgris_bundle_file_manager:
    resource: "@ArtgrisFileManagerBundle/Controller"
    type:     annotation
    prefix:   /manager

Step 4: Prepare the Web Assets

# Symfony 3
php bin/console assets:install --symlink

Step 5: Enable the translator service

# app/config/config.yml
framework:
    translator: { fallbacks: [ "en" ] }

Creating Your First File Manager

Create a folder uploads in web.

Add following minimal configuration :

# app/config/config.yml
artgris_file_manager:
    conf:
        default:
            dir: "../web/uploads"

Browse the /manager/?conf=default URL and you'll get access to your file manager

Symfony Filemanager created with FileManagerBundle


Chapter 1. Basic Configuration