weren't SMARTY {php} tags supposed to work? http://vanillaforums.org/blog/smarty-vs-php/ I assumed that way I could make use of the T('') function but using {php} returns no output whatsoever. (LAMP/Lenny, PHP 5.2.14)
as I'm obviously talking to myself I might as well answer my own questions:
the use of SMARTY's {php} tags seem to be disabled in/library/core/class.smarty.php
So unless there's no other switch or config setting to change or overrride this you can add $Smarty->security_settings['PHP_TAGS'] = TRUE; *after* line 77 $Smarty->security = TRUE; to enable the use of {php}.
This way you can theme language independent and use eg {php}echo T('Discussions');{/php} in your .tpl file(s).
don't know about you but to me this seems like an important option to have to get theming for vanilla rolling.
I just started with vanilla so in case I re-invented the wheel pls let me know.
Comments
http://vanillaforums.org/blog/smarty-vs-php/
I assumed that way I could make use of the
T('')
function but using {php} returns no output whatsoever. (LAMP/Lenny, PHP 5.2.14)unfortunately even the tutorials use hardcoded link names. (Dashboard, Discussions, ..)
http://vanillaforums.com/blog/help-tutorials/how-to-use-custom-theme-part-1-edit-html/#code
am I missing something here..?
the use of SMARTY's {php} tags seem to be disabled in
/library/core/class.smarty.php
So unless there's no other switch or config setting to change or overrride this you can add
$Smarty->security_settings['PHP_TAGS'] = TRUE;
*after* line 77$Smarty->security = TRUE;
to enable the use of {php}.This way you can theme language independent and use eg
{php}echo T('Discussions');{/php}
in your .tpl file(s).don't know about you but to me this seems like an important option to have to get theming for vanilla rolling.
I just started with vanilla so in case I re-invented the wheel pls let me know.