egeloen / IvoryCKEditorBundle

Provides a CKEditor integration for your Symfony project.
MIT License
336 stars 114 forks source link

Unable to find template in a Symfony Flex project #292

Closed alkemist closed 7 years ago

alkemist commented 7 years ago

Unable to find template "IvoryCKEditorBundle:Form:ckeditor_widget.html.twig" (looked into: templates, vendor/symfony/twig-bridge/Resources/views/Form).

May be because the templates folder has been modified in symfony flex :/

egeloen commented 7 years ago

You should probably open your issue on the Symfony recipes contrib repo instead since the bug should be there.

egeloen commented 7 years ago

Btw, can you double check if Flex have well registered the bundle because this template is automatically registered by a compiler pass: https://github.com/egeloen/IvoryCKEditorBundle/blob/master/DependencyInjection/Compiler/ResourceCompilerPass.php

egeloen commented 7 years ago

Or maybe the notation IvoryCKEditorBundle:Form:ckeditor_widget.html.twig is not supported anymore with Flex (don't know)... Anyway, open an issue on Flex, guys should know what's going on better than me...

alkemist commented 7 years ago

I replaced IvoryCKEditorBundle:Form:ckeditor_widget.html.twig by @IvoryCKEditor/Form/ckeditor_widget.html.twig in DependencyInjection/Compiler/ResourceCompilerPass.php and it's work :/

http://symfony.com/doc/master/templating/namespaced_paths.html

egeloen commented 7 years ago

OK but AFAIR, this notation is not deprecated and should still work (I'm OK to switch to naspacced templates but only if the lowest version supported by the bundle already supports namespaced templates otherwise this is a no go...) The minimal supported symfony version is 2.7.0