Posted by Cal Henderson on 05/12/05 07:13
dc wrote:
: I need {=fred}
: but
: {={$name}}
{ldelim}={$name}{rdelim}
: What are the backticks for in smarty? i noticed
backticks are for evaluating a smarty variable
expression in a double-quotish string. simple
variables ($foo) are interpolated, but periods
or object refs aren't. for example:
"$foo.bar-baz" means $foo.'.bar-baz'
"`$foo.bar`-baz" means $foo['bar'].'-baz'
it does the same job as curly braces in regular
php double-quotish strings.
reference:
http://smarty.php.net/manual/en/language.syntax.quotes.php
--cal
[Back to original message]
|