Re: [SMARTY] Question about register globals
| From: | messju mohr | Date: | Fri, 24 Oct 2003 18:22:31 +0000 |
| Subject: | Re: [SMARTY] Question about register globals | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10418@lists.php.net to get a copy of this message | ||
On Fri, Oct 24, 2003 at 08:03:50PM +0200, Luc Saint-Elie wrote:
> Hello,
>
> I just realized that
> {if isset $smarty.get.page}
>
> compiles as :
> <?php if (isset $GLOBALS['HTTP_GET_VARS']['page']): ?>
>
> Is there a setting to switch to
>
> <?php if (isset $_GET['page']): ?>
Smarty-2.6.0 will have a switch:
$smarty->request_use_auto_globals=true for $_*[]-vars
try it's RC2 if you like
> Luc