構文例:
{func var="test $foo test"} <-- sees $foo
{func var="test $foo_bar test"} <-- sees $foo_bar
{func var="test $foo[0] test"} <-- sees $foo[0]
{func var="test $foo[bar] test"} <-- sees $foo[bar]
{func var="test $foo.bar test"} <-- sees $foo (not $foo.bar)
{func var="test `$foo.bar` test"} <-- sees $foo.bar
実用例:
{include file="subdir/$tpl_name.tpl"} <-- これは$tpl_nameを値に置き換える
{cycle values="one,two,`$smarty.config.myval`"} <-- バッククォートを使う必要あり |