Some kind of 'isset' ?

From: Date: Sun, 09 Sep 2001 21:34:33 +0000
Subject: Some kind of 'isset' ?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1451@lists.php.net to get a copy of this message
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

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