2017 © Pedro Peláez
 

symfony-bundle blog-bundle

Blog bundle

image

octopouce-mu/blog-bundle

Blog bundle

  • Wednesday, July 18, 2018
  • by tetrayam
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

OctopouceBlogBundle

Prerequisites

This version of the bundle requires Symfony Flex (>= 4.0) and PHP 7. You want to use Doctrine ORM and MySQL., (*1)

Installation

  1. Download OctopouceBlogBundle using composer
  2. Follow installation OctopouceAdminBundle
  3. Update your database schema
  4. Import OctopouceAdminBundle routing
  5. Publish the Assets
  6. Configure your file security
  7. Usage : Add adzone in page

Step 1: Download OctopouceBlogBundle using composer

Require the bundle with composer:, (*2)

$ composer require octopouce-mu/blog-bundle

Step 2: Follow installation OctopouceAdminBundle

For working the bundle, there needing OctopouceAdminBundle. Install dependencies bundles and configure., (*3)

OctopouceAdminBundle, (*4)

Step 3: Update your database schema

For ORM run the following command., (*5)

$ php bin/console doctrine:schema:update --force

Caution, (*6)

If error "1071 Specified key was too long; max key length is 767 bytes", you change configs doctrine :, (*7)

# config/packages/doctrine.yaml
doctrine:
    dbal:
        charset: utf8
        default_table_options:
            charset: utf8
            collate: utf8_unicode_ci

Step 4: Import OctopouceBlogBundle routing files

Now that you have activated and configured the bundle, all that is left to do is import the OctopouceBlogBundle routing files if Symfony Flex hasn't already imported the file., (*8)

# config/routes/octopouce_blog.yaml
_octopouce_blog:
    resource: "@OctopouceBlogBundle/Resources/config/routing/routing.yaml"

Step 5: Publish the Assets

$ php bin/console assets:install --symlink

Step 6: Configure your file security

# config/packages/security.yaml
security:
    role_hierarchy:
        ROLE_BLOG: ROLE_USER
        ROLE_ADMIN: [ROLE_BLOG]
        ROLE_SUPER_ADMIN: ROLE_ADMIN

Others bundles

You can to add bundles with OctopouceAdminBundle :, (*9)

The Versions

18/07 2018

dev-master

9999999-dev

Blog bundle

  Sources   Download

MIT

The Requires

 

by Kevin Hilairet