Re: [SMARTY] $smarty and variables

From: Date: Tue, 17 Aug 2004 15:33:44 +0000
Subject: Re: [SMARTY] $smarty and variables
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11700@lists.php.net to get a copy of this message
On 8/17/04 10:42 AM, "Marcus Bointon" <marcus@synchromedia.co.uk> wrote: > I'm writing a plugin that needs to check if a particular template variable > is defined. I can't see anything in the docs to let me find that out - is > there a public property like a $smarty.vars array that contains all the vars > passed to a template?? I want to be able to do something like: > > If (array_key_exists('myvar', $smarty.vars)) {... > > Marcus It looks like: http://smarty.php.net/manual/en/chapter.debugging.console.php might have what you need. Take a look at the debug.tpl file to see how to view all template vars. cheers, dan

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