 |
Smarty
The discussions here are for Smarty, a template engine for the PHP programming language. Dedicated server web hosting provided by Guru-host.eu. |
| View previous topic :: View next topic |
| Author |
Message |
SunWuKung Smarty Rookie
Joined: 20 Sep 2008 Posts: 20
|
Posted: Tue Jan 31, 2012 1:05 pm Post subject: return from template |
|
|
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 |
|
rodneyrehm Administrator

Joined: 30 Mar 2007 Posts: 698 Location: Germany, border to Switzerland
|
Posted: Tue Jan 31, 2012 1:48 pm Post subject: |
|
|
no there is not. _________________ Twitter |
|
| 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
|