We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgraded my dev environment to work on #301 and came across a new error in doing so
Here's the Smarty code
{if $smarty.const.SITE_ID == 1} Do stuff {/if}
And the rendered output in Smarty cache (this works in -dev/32)
-dev/32
Smarty version 3.1.31-dev/33, created on 2016-10-10 12:15:40
$_smarty_tpl->_subTemplateRender('file:layout/".((string)@constant('SITE_ID'))."-index.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true);
With the error
Parse error: syntax error, unexpected 'SITE_ID' (T_STRING), expecting ',' or ')' in /path/to/cache.tpl.php on line 27
I am using PHP 7.0.11
The text was updated successfully, but these errors were encountered:
- bugfix {include} with template names including variable or constant…
f3e0e01
…s could fail after bugfix from 28.09.2016 #302
This is now fixed in the master branch
Sorry, something went wrong.
No branches or pull requests
Upgraded my dev environment to work on #301 and came across a new error in doing so
Here's the Smarty code
And the rendered output in Smarty cache (this works in
-dev/32
)Smarty version 3.1.31-dev/33, created on 2016-10-10 12:15:40
With the error
I am using PHP 7.0.11
The text was updated successfully, but these errors were encountered: