Re: question...

From: Date: Thu, 10 Jan 2002 19:14:35 +0000
Subject: Re: question...
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2514@lists.php.net to get a copy of this message
That code should work fine, you can call PHP functions from if statements. (limited ones when security is enabled) > Tara Johnson wrote: > > Hi, > > I am wondering if there is anything in Smarty similar to isset() so > that I can check if a value is already set or not from within a > template... > > For example I would like to do this from directly within the template: > > {if isset($myFile)} > {include file="$myFile"} > {else} > <b> hello world </b> > {/if} > > Is there an easy way to do this (without touching the calling php > file)? > > thanks, > Tara > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to > $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.smarty.general (#2514) next »