RE: question...
| From: | Tara Johnson | Date: | Thu, 10 Jan 2002 18:04:56 +0000 |
| Subject: | RE: question... | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2511@lists.php.net to get a copy of this message | ||
This would be fine, except that doing it this way throws errors if php is
set to display warnings/notices.
Tara
-----Original Message-----
From: Dominique Peretti [mailto:dperetti@noos.fr]
Sent: Thursday, January 10, 2002 11:01 AM
To: Tara Johnson
Subject: Re: [smarty] question...
For me, {if $myFile} usually works...
On 10/01/02 18:58, "Tara Johnson" <Tara.Johnson@DevelopOnline.com> 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: dperetti@noos.fr
To unsubscribe send a blank email to $subst('Email.Unsub')
Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/