webundle/puzzle-admin-blog

Manages blog or news


Keywords
blog news
License
Other

Documentation

Puzzle Admin Blog Bundle

=========================

Puzzle bundle for managing admin

Step 1: 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 webundle/puzzle-client-blog

Step 2: 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 Puzzle\Admin\BlogBundle\PuzzleAdminBlogBundle(),
                    );

 // ...
}

 // ...
}

Step 3: Register the Routes

Load the bundle's routing definition in the application (usually in the app/config/routing.yml file):

app/config/routing.yml

puzzle_admin:
        resource: "@PuzzleAdminBlogBundle/Resources/config/routing.yml"

Step 4: Configure Dependency Injection

Then, enable management bundle via admin modules interface by adding it to the list of registered bundles in the app/config/config.yml file of your project under:

# Puzzle Client Blog
puzzle_admin_blog:
    title: blog.title
    description: blog.description
    icon: blog.icon
    roles:
        blog:
            label: 'ROLE_BLOG'
            description: blog.role.default

Step 5: Enable module

Then, enable management bundle via admin modules interface by adding it to the list of registered bundles in the app/config/config.yml file of your project under:

# Client Admin
puzzle_admin:
    ...
    modules_availables: '...,blog'