octopouce-mu / blog-bundle
Blog bundle
Installs: 48
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.1.3
- octopouce-mu/admin-bundle: dev-master
- symfony/framework-bundle: ^4.0
This package is auto-updated.
Last update: 2025-04-11 03:28:59 UTC
README
Prerequisites
This version of the bundle requires Symfony Flex (>= 4.0) and PHP 7. You want to use Doctrine ORM and MySQL.
Installation
- Download OctopouceBlogBundle using composer
- Follow installation OctopouceAdminBundle
- Update your database schema
- Import OctopouceAdminBundle routing
- Publish the Assets
- Configure your file security
- Usage : Add adzone in page
Step 1: Download OctopouceBlogBundle using composer
Require the bundle with composer:
$ composer require octopouce-mu/blog-bundle
Step 2: Follow installation OctopouceAdminBundle
For working the bundle, there needing OctopouceAdminBundle. Install dependencies bundles and configure.
Step 3: Update your database schema
For ORM run the following command.
$ php bin/console doctrine:schema:update --force
Caution
If error "1071 Specified key was too long; max key length is 767 bytes", you change configs doctrine :
# 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.
# 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 :