2009/12/6 Kornel Lesiński <kor...@aardvarkmedia.co.uk>

> On 06.12.2009, at 12:25, romtek wrote:
>
> > I'd like to be able to access superglobals from within a template, but it
> seems impossible now. Is there a way to do it?
>
> You can use either
>
> php:_POST['foo']
>
> or
>
> $phptal->post = $_POST;
> and post/foo
>
>
I needed to access the GLOBALS array. So, I've tried php:GLOBALS['foo'] and
also php:$GLOBALS['foo'], but neither option worked.
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to