Since this is last login, it should be $item.getLastLogin(), the method returns 2 (years|months|days|minutes|seconds) ago. Depending on how far from the current time the last login was. I could do it another way, however, would like to find out why this doesn't work.
On 08/01/11 12:53, Levi Stanley 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@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phptal
_______________________________________________ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal