[PHPTAL] Object causing a parse error

Robert_E_Lee at Dell.com Robert_E_Lee at Dell.com
Mon Aug 1 19:26:46 CEST 2011


Try using valid PHP (->, not . for instance member access).

-----Original Message-----
From: phptal-bounces at lists.motion-twin.com [mailto:phptal-bounces at lists.motion-twin.com] On Behalf Of Darrell Hamilton
Sent: Monday, August 01, 2011 12:20 PM
To: Template Attribute Language for PHP
Subject: Re: [PHPTAL] Object causing a parse error

Fairly sure you just need to drop the `$'

See: http://phptal.org/manual/en/#tales-php

Darrell Hamilton,
Software Developer,
4over, Inc
darrellh at 4over.com
818-246-1170 ext. 285



On Mon, Aug 1, 2011 at 9:53 AM, Levi Stanley <levi at eneservices.com> wrote:
> <p>Last login ${php: $time.timeFromNow($item.getCreated())}</p>
>
> Message:<br /> <b>Parse error</b>: syntax error, unexpected T_STRING in
> <b>/usr/share/php/PHPTAL.php(845) :
> /www/sites/[domain-was-here]/application/../tal/cache/tpl_4e3629a0_users__4qOO_B2LvUN4WCVHcqjFgQ.php</b>
> on line <b>40</b><br />
>
> Best regards,
> Levi Stanley
> _______________________________________________
> PHPTAL mailing list
> PHPTAL at lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
>

_______________________________________________
PHPTAL mailing list
PHPTAL at lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


More information about the PHPTAL mailing list