You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
Can't we have this for version 4.x?
I think this is an important and basic feature.
I don't know about absolute path but at least simple dynamic variable is good enough for now.
I had almost decided to use Twig because of this problem.
Also, There is no post for this issue to vote on issue #14608
@AliShareei It will be done in v5 because Volt is written in C. Process of rewrite to PHP native is still in progress, as there are 20+k lines of code in C.
Activity
[-][NFR]: Volt extends from virable, absolute path[/-][+][NFR]: Volt extends from virable or from absolute path[/+]yassinrais commentedon Feb 5, 2020
we really need this
DIRNAME == the volt file :: current folder{% DIRNAME ~ 'exemple/part4' %}At that moment
you have a lot of partials folders and files & you w tant to change a folder name
you will need to edit every partial file and change the path ...
Thanks
greetings.
Jeckerson commentedon Feb 6, 2020
@yassinrais Give your vote in this issue - #14608
AliShareei commentedon Feb 8, 2021
Hello
Can't we have this for version 4.x?
I think this is an important and basic feature.
I don't know about absolute path but at least simple dynamic variable is good enough for now.
I had almost decided to use Twig because of this problem.
Also, There is no post for this issue to vote on issue #14608
Jeckerson commentedon Feb 8, 2021
@AliShareei It will be done in
v5because Volt is written in C. Process of rewrite to PHP native is still in progress, as there are 20+k lines of code in C.AliShareei commentedon Feb 8, 2021
Hi @Jeckerson
If so, since
TwigandVoltseems to have similar syntax, what are the benefits of rewritingVoltin PHP? Why not use theTwigforv5?Jeckerson commentedon Feb 8, 2021
@AliShareei Hello, benefits are relative from view to view. But if generalize:
11 remaining items
[#17269] - adding tests
[#17269] - updating changelog
[#17269] - updating composer
[#17269] - adding missing header/file
niden commentedon Jul 6, 2026
Resolved in #17272
[#17269] - adding ability to use different paths for volt templates
[#17269] - adding tests
[#17269] - updating changelog
[#17269] - updating composer
[#17269] - adding missing header/file
Port master's View and Volt (5.23.0) onto this branch