Re: Some kind of 'isset' ?
| From: | taliku at balcab dot ch | Date: | Sun, 09 Sep 2001 21:55:31 +0000 |
| Subject: | Re: Some kind of 'isset' ? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1452@lists.php.net to get a copy of this message | ||
Hi!
I make it like this.
{if $updateframeset} {/if}
i hope i could help you
-taliku
----- Original Message -----
From: "Markus Fischer" <mfischer@guru.josefine.at>
To: <smarty@lists.ispi.net>
Sent: Sunday, September 09, 2001 11:34 PM
Subject: [smarty] Some kind of 'isset' ?
> I apologize but I couldn't find this information (although I did
> go through the docs).
>
> I'm using Smarty (great thing methinks) only for simple cases
> right now. Mostly to enable/disable certain HTML oder JavaScript
> output.
>
> E.g., I use
>
> {{if $updateframeset == "true" }}
> <script language="JavaScript">
> [...]
> </script>
> {{/if}}
>
> From PHP I call this with
>
> $s = new Smarty;
> $s->assign('updateframeset', 'true');
> $s->display('template.html');
>
> But I often have cases where I don't set those variables and just
> do
>
> $s = new Smarty;
> $s->display('template.html');
>
> and then I get
>
> Warning: Undefined index: updateframeset in .../template.html.php
>
> I'm using error_reporting(E_ALL);
>
> Is it necessary to always define such variables or can I do
> something to prevent the warning messags when using E_ALL?
>
> thanks
>
> markus
>
> ---
> You are currently subscribed to smarty as: taliku@balcab.ch
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/