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

MySQL assigned variable detection

 
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 -> Feature Requests
View previous topic :: View next topic  
Author Message
exidas
Smarty n00b


Joined: 08 Feb 2010
Posts: 1

PostPosted: Mon Feb 08, 2010 11:09 am    Post subject: MySQL assigned variable detection Reply with quote

Hi guys,

don't know if its feature, or its possible right now without any plugins or extensions, but i need to detect assigned variable in fetched row from SQL database, so for example something like this:

"Lorem ipsum dolor sit amet {$assigned_var} consectetuer adipiscing elit"

Its not problem do this in .tpl file, but i would like to take the content from db. Is it possible to do it?

Thanks a lot for any idea.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Mon Feb 08, 2010 2:12 pm    Post subject: Reply with quote

you can use {eval} or a custom template resource.
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 -> Feature Requests 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