Reply to Re: Smarty and Href

Your name:

Reply:


Posted by Rik on 07/04/06 10:15

J Huntley Palmer wrote:
> 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.

Turn on error_reporting(E_ALL).
If $foo->bar doesn't exist it will give you an error of E_NOTICE level. If
it does exist, I wouldn't know with this little piece what the problem could
be.

Grtz,
--
Rik Wasmus

[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

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