avanzu / AdminThemeBundle

Admin Theme based on the AdminLTE Template for easy integration into symfony
MIT License
281 stars 149 forks source link

Widget blocks do not exist #164

Closed benr77 closed 6 years ago

benr77 commented 7 years ago

I've just upgraded my project from Twig 1.x to Twig 2.x and I'm getting the following errors about missing blocks:

Block "box_before" on template "AvanzuAdminThemeBundle:Widgets:box-widget.html.twig" does not exist.

This is in file

vendor/avanzu/admin-theme-bundle/Resources/views/Widgets/box-widget.html.twig at line 2

I'm using the latest Beta 5 release.

I think this is because Twig 1.x silently ignores undefined blocks, whereas Twig 2.x throws an exception.

The issue crops up for all the blocks defined for the widget - e.g. box_tools, box_after etc etc

hounded commented 7 years ago

submit a pull request?

shakaran commented 6 years ago

@benr77 the PR #169 has been merged, this resolve all your issue or still present? Thanks

benr77 commented 6 years ago

Yes this was all that was needed.