Re: $global_assign
| From: | Andrei Zmievski | Date: | Thu, 21 Mar 2002 15:23:33 +0000 |
| Subject: | Re: $global_assign | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3194@lists.php.net to get a copy of this message | ||
On Thu, 21 Mar 2002, Rainer Collet wrote:
> Hi all!
>
> For me the following does not work:
> $smarty->global_assign =
> array ( 'PHP_SELF',
> 'HTTP_SERVER_VARS' => array ( 'REQUEST_URI' )
> );
>
> You have to do it in Smarty.class.php and cannot do it for each object. This
> is a bug I think, isn't it?
As a workaround you can do $smarty->Smarty() after you assign the
global_assign variable.
-Andrei
* It's an emergent property of human minds to create. *