This bundle require :
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
},
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.
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:
#app/config/routing.yml
tleroch_admin:
resource: "@TlerochAdminBundle/Resources/config/routing.yml"
prefix: /admin
#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
You can now read documentation: