You are here: Re: [SMARTY] Associative Arrays with special characters « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] Associative Arrays with special characters

Posted by Monte Ohrt on 09/29/55 11:34

http://www.phpinsider.com/smarty-forum/viewtopic.php?t=6227

same goes for colons.

Andrew Nagy wrote:

> I have a serialized XML document in an associative array using
> XML_Serializer. Due to the use of namespaces, many of the elements in
> the document use a colon (:) within the name. Since the names are
> stored as the array key, this causes problems with smarty.
>
> How do I reference a variable such as this within smarty:
> $array['xlink:href'] ?
>
> When I attempt to use the correct syntax {$array.xlink:href} I get the
> following error:
> syntax error: unrecognized tag
>
> Any ideas?
>
> Thanks
> Andrew
>

 

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

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