You are here: Re: Smarty and Href « PHP Programming Language « IT news, forums, messages
Re: Smarty and Href

Posted by Alvaro G. Vicario on 07/04/06 21:39

*** J Huntley Palmer escribió/wrote (Mon, 03 Jul 2006 22:40:44 -0400):
> Whenever I put in a smarty variable in a link definition as :
>
> <a href="{$foo->bar}">foo</a>,
>
> it shows up as a literal as above in the link and not the contents of
> the variable itself. Everywhere else in the template .. variable
> substitution works fine.

http://smarty.php.net/manual/en/language.syntax.quotes.php

"Smarty will recognize assigned variables embedded in double quotes so
long as the variables contain only numbers, letters, underscores and
brackets []. With any other characters (period, object reference, etc.) the
variable must be surrounded by backticks."

Hope this helps

--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--

 

Navigation:

[Reply to this 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

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