|
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 |
robsons6 Smarty n00b
Joined: 28 Jul 2009 Posts: 4
|
Posted: Wed Jul 29, 2009 11:09 am Post subject: inteligent recive variable from conf file |
|
|
In smarty 3 alpha doesn't work this code:
Code: |
{assign var='ReturnSmarty' value="{#`$result`#`$smarty.rdelim`"}
{eval var=$ReturnSmarty}
|
Is any method to recive the same result? |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Wed Jul 29, 2009 4:45 pm Post subject: |
|
|
I have extended the parser to allow now variable confing vars
{#$foo#}
It's in the SVN now. |
|
Back to top |
|
robsons6 Smarty n00b
Joined: 28 Jul 2009 Posts: 4
|
Posted: Thu Jul 30, 2009 9:19 pm Post subject: |
|
|
Great!
Thanks for your help |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Jul 31, 2009 12:27 am Post subject: |
|
|
Or just use {$smarty.config.$foo} as usual |
|
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
|