Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty and pear config

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
stootles
Smarty n00b


Joined: 24 May 2003
Posts: 1

PostPosted: Sun May 25, 2003 12:04 am    Post subject: Smarty and pear config Reply with quote

Hi,

I am attempting to write a site that will make use of the pear config module. When using an XML style config file, and requesting the config module to twist it into an array it uses an @ symbol as they for the assoc array that holds the attributes. e.g.

section['subsection']['@']['attr']['value']

I thought all was going well until I tried to get smarty to access one of these variables. Smarty pretty much seems to not like the @, is there a way to get smarty to like it?

Obviously I can write function to clean it up into something smarty would like, but it would be nicer not to have to.

Which also gets me wondering about other pear XML things, I haven't looked but if other pear XML modules use @ when they twist data into a variable, it could make using smarty in an XML environment a bit messy.

Anyone have any thoughts or tips on getting smart to play nice with this?

Stewart
Back to top
View user's profile Send private message
macleo
Smarty Rookie


Joined: 22 May 2003
Posts: 9
Location: Tokyo,Japan

PostPosted: Mon May 26, 2003 7:20 am    Post subject: which tools most excellent and easy to use between smarty an Reply with quote

which tools most excellent and easy to use between smarty and pear !?


thanks!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP