This version of the bundle requires Symfony Flex (>= 4.0) and PHP 7. You want to use Doctrine ORM and MySQL.
- Download OctopouceCmsBundle using composer
- Follow installation OctopouceAdminBundle
- Update your database schema
- Import OctopouceAdminBundle routing
- Publish the Assets
- Configure your file security
- Usage : Add adzone in page
Require the bundle with composer:
$ composer require octopouce-mu/cms-bundle
For working the bundle, there needing OctopouceAdminBundle. Install dependencies bundles and configure.
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
Now that you have activated and configured the bundle, all that is left to do is import the OctopouceCmsBundle routing files if Symfony Flex hasn't already imported the file.
# config/routes/octopouce_cms.yaml
_octopouce_cms:
resource: "@OctopouceCmsBundle/Resources/config/routing/routing.yaml"
$ php bin/console assets:install --symlink
# config/packages/security.yaml
security:
role_hierarchy:
ROLE_SHOW: ROLE_USER
ROLE_CMS: ROLE_SHOW
ROLE_ADMIN: [ROLE_CMS]
ROLE_SUPER_ADMIN: ROLE_ADMIN
The bundle need data default for working so uou can to generate fixtures data in database :
$ php bin/console doctrine:fixtures:load
You can to add bundles with OctopouceAdminBundle :