Reply to Re: [SMARTY] simple loops?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация