Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic.
2.22k
stars
701
forks
source link
Smarty5: {config_load config variables not available in all templates #993
Closed
blaaat closed 2 months ago
Consider the following files:
test.cfg:
test.html
test2.html
test.php
Smarty4 output:
Smarty5 output:
Also with scope='global' in config_load this case is not working.
Is it supposed to be like this? (and should I call config_load in every template that uses the variables? or is this inefficient?)