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
When using an {include} in a {block}, the paths seem to be relative to the file that has been extended, and not to the file they're being included from. For example the following use case:
Instead I get this error: [SmartyException] Unable to load template file '../include_me.tpl' in 'file:../base.tpl'
I had intended to report the exact opposite error before I updated beyond 3.1.28. As in 3.1.27 the include paths in base.tpl would be relative to the file that had extended them.
The text was updated successfully, but these errors were encountered:
When using an {include} in a {block}, the paths seem to be relative to the file that has been extended, and not to the file they're being included from. For example the following use case:
File:
base.tpl
File:
include_me.tpl
File in subdir, which is rendered:
dir/index.tpl
I'd expect this to render this:
Instead I get this error:
[SmartyException] Unable to load template file '../include_me.tpl' in 'file:../base.tpl'
I had intended to report the exact opposite error before I updated beyond 3.1.28. As in 3.1.27 the include paths in
base.tpl
would be relative to the file that had extended them.The text was updated successfully, but these errors were encountered: