Re: [SMARTY] simple loops?
| From: | Cal Henderson | Date: | Thu, 12 May 2005 04:13:54 +0000 |
| Subject: | Re: [SMARTY] simple loops? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12621@lists.php.net to get a copy of this message | ||
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