Re: [SMARTY] $smarty and variables

From: Date: Tue, 17 Aug 2004 15:48:30 +0000
Subject: Re: [SMARTY] $smarty and variables
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11701@lists.php.net to get a copy of this message
http://smarty.php.net/manual/en/api.get.template.vars.php Marcus Bointon 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


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