Re: [SMARTY] making variables aviable in {php}{/php}-Blocks
| From: | messju mohr | Date: | Fri, 27 Jun 2003 19:32:44 +0000 |
| Subject: | Re: [SMARTY] making variables aviable in {php}{/php}-Blocks | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9784@lists.php.net to get a copy of this message | ||
On Fri, Jun 27, 2003 at 07:06:55PM +0200, Christian K. wrote:
> Hello.
> I want to set a variable in the main script and then access it in a
> {php}{/php}-Block in the Smarty template.
> How to do so?
declare it global inside {php}...{/php} or access it as $GLOBALS['varname']
HTH
messju
>
>
> Christian K.