HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Adding a custom path to Twig
kassius
New
Hello, I need help:
How can I change or add a new path to twig?
Thanks
0
Comments
I changed line `66` of the file
library/Vanilla/Web/TwigRenderTrait.php
to the correct diretory.A did so to solve (to patch) a bug I had, as exposed here https://open.vanillaforums.com/discussion/37561/upgrading-from-3-1-to-3-2-fatal-error-in-twig-loader-filesystemloader-findtemplate
If there is better way to do this please tell me :)
@kassius If you could raise this as an issue on GitHub, it would get to the attention of the developers.
I think you can achieve this by using
addPath
in thelibrary/Vanilla/Web/TwigRenderer.php
file constructor, like this: