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

places_autocomplete_widget.html.twig #81

Closed fertandil87 closed 11 years ago

fertandil87 commented 11 years ago

After the last updates I am getting this error in working code,

Twig_Error_Loader: Unable to find template "IvoryGoogleMap:Form:places_autocomplete_widget.html.twig" in "XXXXXXXXXBundle:Search:search_bar.html.twig" at line 2.

In that line 2 I am incuiding a form that dont use this bundle

fertandil87 commented 11 years ago

HERE THE ERROR:

array_merge($twigFormResources, array('IvoryGoogleMap:Form:places_autocomplete_widget.html.twig'))

it should be

array_merge($twigFormResources, array('IvoryGoogleMapBundle:Form:places_autocomplete_widget.html.twig'))

why this is included in a form that it doesn't use places?

egeloen commented 11 years ago

@fertandil87 Thx for reprting it & debugging it! (bad copy/paste/rename...)

I just push a fix which should have fixed your issue. Can you confirm?

For your question, the form component loads all form templates according to your templating configuration (ie twig and/or php) before building your form. So, it is normal the places_autocomplete form template is loaded either or not your form uses it.

fertandil87 commented 11 years ago

oh, thanks you too

egeloen commented 11 years ago

@fertandil87 Can you confirm the issue has been fixed?

fertandil87 commented 11 years ago

give me 1 or 2 hours

2013/7/29 Eric GELOEN notifications@github.com

@fertandil87 https://github.com/fertandil87 Can you confirm the issue has been fixed?

— Reply to this email directly or view it on GitHubhttps://github.com/egeloen/IvoryGoogleMapBundle/issues/81#issuecomment-21724262 .

egeloen commented 11 years ago

@fertandil87 No problem take your time :)

fertandil87 commented 11 years ago

looks fixed :D Thanks

2013/7/29 Eric GELOEN notifications@github.com

@fertandil87 https://github.com/fertandil87 No problem take your time :)

— Reply to this email directly or view it on GitHubhttps://github.com/egeloen/IvoryGoogleMapBundle/issues/81#issuecomment-21724714 .