question...

From: Date: Thu, 10 Jan 2002 17:58:23 +0000
Subject: question...
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2510@lists.php.net to get a copy of this message
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

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