Harborn-digital / cookie-consent-bundle

Symfony bundle to append Cookie Consent to your website to comply to AVG/GDPR for cookies.
MIT License
19 stars 18 forks source link

Question #14

Closed sebastiancretu closed 5 years ago

sebastiancretu commented 5 years ago

Hi, and sorry for intruding.. I am trying to activate the bundle on an symfony4, but with no success. I followed the steps in the readme, set the config in services.yaml, activated the bundle (ConnectHolland\CookieConsentBundle\CHCookieConsentBundle::class => ['all' => true],) in bundles.php and after I insert the render in twig template, and i receive the following error:

An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "ch_cookie_consent.show_if_cookie_consent_not_set" as such route does not exist.").

Can you give me a starting point of how can i fix it ?

Thank you for your time, and this is a great bundle. I searched for one like this for a long time.

matthijsch commented 5 years ago

The routing should be loaded automatically when the symfony recipe PR I've created has been merged ( https://github.com/symfony/recipes-contrib/pull/614 ). Till then you will have to load the routing yourself by adding this in your routing config

ch_cookie_consent:
    resource: "@CHCookieConsentBundle/Resources/config/routing.yaml"
sebastiancretu commented 5 years ago

Thank you. It works now. Unfortunately jquery breaks the design. I will try to find a solution.