Afficher un message
Vieux 14/12/2005, 11h48   #3
Pedro
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] Associative Arrays with special characters

Maybe the documentation should be changed to indicate these facts ??

pete


Monte Ohrt wrote:
> http://www.phpinsider.com/smarty-for...pic.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
>>

  Réponse avec citation
 
Page generated in 0,06228 seconds with 9 queries