|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
exidas Smarty n00b
Joined: 08 Feb 2010 Posts: 1
|
Posted: Mon Feb 08, 2010 11:09 am Post subject: MySQL assigned variable detection |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Mon Feb 08, 2010 2:12 pm Post subject: |
|
|
you can use {eval} or a custom template resource. |
|
Back to top |
|
|
|
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
|