Code Comments
Programming Forum and web based access to our favorite programming groups.http://smarty.php.net/manual/en/api...mplate.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 var s >passed to a template?? I want to be able to do something like: > >If (array_key_exists('myvar', $smarty.vars)) {... > >Marcus > >
Post Follow-up to this messageon 17/8/04 16:48, Monte Ohrt at monte@ispi.net wrote: > http://smarty.php.net/manual/en/api...mplate.vars.php Ah - it's a function, not a property. Thanks, Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus@synchromedia.co.uk | http://www.synchromedia.co.uk
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.