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
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:...\header.tpl" on line 4 "{config_load 'system_vars.config' section='en' scope='global'}" illegal value ''global'' for "scope" attribute <-- thrown in ...\smarty\sysplugins\smarty_internal_templatecompilerbase.php on line 4.
header.tpl contain the {config_load 'system_vars.config' section='en' scope='global'}
top.tpl include header.tpl
index.tpl include top.tpl
How can be resolved this error?
Thank You
The text was updated successfully, but these errors were encountered:
It depends where the config var shall be know.
{config_load 'system_vars.config' section='en'} Will load the vars into the current template
{config_load 'system_vars.config' section='en' scope='tpl_root'} Will load the vars into the current and all parent templates moving down the {include} stack.
{config_load 'system_vars.config' section='en' scope='smarty'} Will in addition update the vars in the Smarty object.
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:...\header.tpl" on line 4 "{config_load 'system_vars.config' section='en' scope='global'}" illegal value ''global'' for "scope" attribute <-- thrown in ...\smarty\sysplugins\smarty_internal_templatecompilerbase.php on line 4.
How can be resolved this error?
Thank You
The text was updated successfully, but these errors were encountered: