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
You are right. The change was documented in the changelog as "Template variable scope bubbling has been simplified and made more consistent. The global scope now equals the Smarty scope in order to avoid global state side effects. Please read the documentation for more details." This doesn't really suggest what could go wrong, but I hadn't forseen this either to be honest.
Hi,
In Smarty 4 it was possible to assign a variable inside a template and use this after fetching in code.
{assign var="var" value=$from_name scope="root"}
$smarty->getTemplateVars()
In smarty 5.0.2 this only returns the variables assigned in PHP. Tried to change the (undocumented) scope to global without success
The text was updated successfully, but these errors were encountered: