Skip to content

Tim142857/AdminBundle

Repository files navigation

Requirements

This bundle require :

Installation

Step 1: Add repository to composer

Open composer.json and add this section:

"repositories": [
        {
            "type": "vcs",
            "url":  "https://github.com/Tim142857/AdminBundle.git"
        }
    ]

You also need to allow unsecure url, add in section config:

"config": {
        "secure-http": false
    },

Step 2: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require Tleroch/adminBundle "dev-master"

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 3: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Tleroch\AdminBundle\TlerochAdminBundle(),
        );

        // ...
    }

    // ...
}

Finaly add customer api key in app/config/config.yml

# Tleroch Admin
tleroch_admin:
    security_seed: 
    customer_email: 
    redirect_route:  

Step 4: Add Routing

#app/config/routing.yml
tleroch_admin:
    resource: "@TlerochAdminBundle/Resources/config/routing.yml"
    prefix: /admin  

Step 4: Configure Less/Assetic

#app/config/routing.yml

# Assetic
assetic:
    debug:          '%kernel.debug%'
    use_controller: '%kernel.debug%'
    filters:
        cssrewrite: ~
        less:
            node: 
            #e.g: node: C:\Program Files\nodejs\node.exe
            node_paths: 
            #e.g: node: node_paths: [C:\Users\YourUser\AppData\Roaming\npm\node_modules]
    bundles:
        - TlerochAdminBundle
        - AdminBundle
        #-Your others bundles

Step 5: Read documentation

You can now read documentation:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published