Code Comments
Programming Forum and web based access to our favorite programming groups.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 va
rs
> 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/cha...ing.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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.