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

Formsess developement: matching a variable in a string

 
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 -> Smarty Development
View previous topic :: View next topic  
Author Message
katana
Smarty Rookie


Joined: 17 Apr 2003
Posts: 26
Location: France

PostPosted: Tue Jan 13, 2004 4:02 pm    Post subject: Formsess developement: matching a variable in a string Reply with quote

I'm still working in order to improve formsess, my forms generation & validation library for smarty.

At the moment, I'm attempting to cleanup the mess I have when dealing with variables inside formsess tags.

To summarize, all the tags look like this:
<fs:input type="text" name="foo" />
Of course, you are supposed to be able to use a smarty variable as the name. So I had to build a regexp in order to match smarty variables, but I'm realizing that it's quite stupid to reinvent the wheel, and it would be better to let smarty handle that.

So, the actual question is: what method could I cleanly use in order to check if a string is a smarty variable, or a string containing a smarty variable with backticks ?
Back to top
View user's profile Send private message MSN Messenger
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 -> Smarty Development 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