egeloen / IvoryGoogleMapBundle

Google Map API v3 integration for your Symfony2 project.
https://github.com/egeloen/ivory-google-map
MIT License
217 stars 152 forks source link

Cannot find Twig functions #110

Closed woutsanders closed 10 years ago

woutsanders commented 10 years ago

I installed as per docs, but I cannot render a map. Symfony is telling me that the twig function {{ google_map(map) }} does not exist. I also tried the other 3 methods:

google_map_container()
google_map_css()
google_map_js()

I get the same error by all functions. Do you know what's wrong with it? I added these lines to my composer.json file as per docs:

"egeloen/google-map-bundle": "~2.1",
"willdurand/geocoder": "*",
woutsanders commented 10 years ago

Never mind, I already found it. It was so obvious: I forgot to register the bundle in the AppKernel.php. Silly me :)

Solved!