Re: [SMARTY] global vars in a php block

From: Date: Tue, 16 Dec 2003 20:22:40 +0000
Subject: Re: [SMARTY] global vars in a php block
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10707@lists.php.net to get a copy of this message
The value of $myFile will be different compared to params coming from the query part used why flashing index.php
I'm not sure exactly what you're saying, but this shouldn't matter either. Just assign all the values you need (or may need) and you're done. If they're not assigned in the current template, that's still ok, unless you have strict error reporting the value will just be null. I think you could also just: smary->assign('globals', $GLOBALS); Then in your template: {$globals.value}
e.g. index.php?f=first will include first.inc
     index.php?f=second will include second.inc
Make sure you check input. Vonleigh Simmons [vanlei] San Francisco, CA <www.illusionart.com/pi/>

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