Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

inteligent recive variable from conf file

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
robsons6
Smarty n00b


Joined: 28 Jul 2009
Posts: 4

PostPosted: Wed Jul 29, 2009 11:09 am    Post subject: inteligent recive variable from conf file Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Wed Jul 29, 2009 4:45 pm    Post subject: Reply with quote

I have extended the parser to allow now variable confing vars

{#$foo#}

It's in the SVN now.
Back to top
View user's profile Send private message
robsons6
Smarty n00b


Joined: 28 Jul 2009
Posts: 4

PostPosted: Thu Jul 30, 2009 9:19 pm    Post subject: Reply with quote

Great!
Thanks for your help Very Happy
Back to top
View user's profile Send private message
mohrt
Administrator


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

PostPosted: Fri Jul 31, 2009 12:27 am    Post subject: Reply with quote

Or just use {$smarty.config.$foo} as usual Wink
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 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