Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
return from template

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
SunWuKung
Smarty Rookie


Joined: 20 Sep 2008
Posts: 20

PostPosted: Tue Jan 31, 2012 1:05 pm    Post subject: return from template Reply with quote

Hi,
is there a command to break the processing of a template and return to the calling PHP?

something like
{if $fetch_datasource}
{$datasource=array('ds1','ds2','ds3') scope="global"}
{return}
{/if}

so that I don't need to put the rest of the template in an {else} clause?

Thanks for the help.
SWK
Back to top
View user's profile Send private message
rodneyrehm
Administrator


Joined: 30 Mar 2007
Posts: 698
Location: Germany, border to Switzerland

PostPosted: Tue Jan 31, 2012 1:48 pm    Post subject: Reply with quote

no there is not.
_________________
Twitter
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 -> General 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