Thank you :-)
Works like a charm ^_^
2009/9/16 Kornel Lesiński <kor...@aardvarkmedia.co.uk>
> On 16-09-2009 at 15:44:51 Marco Pivetta <ocram...@gmail.com> wrote:
> Hi there!
>> I've been playing around with some classes I've built and now I'm getting
>> some problems with PHPTAL integration. The problem is very simple:
>> how do I access methods of my objects from inside the template?
>> Is there any simple way to do that or do I have to modify the PHPTAL
>> What I mean is using (and using output) of something like
>> or $user->getInfo() or $user->setAge(20).
>> Any ideas?
>> Of course I cannot use the '>' character to avoid breaking the XML
> That's why PHPTAL allows '.' with php: expression modifier:
> If method doesn't take arguments, you can use expression without php:
> and PHPTAL will automatically figure out that getInfo is a method and call
> regards, Kornel
> PHPTAL mailing list
Marco Pivetta - Ocramius Aethril
Standard Ogame Project - StOgame
Making Ogame a better place...
Sent from Carbonera, TV, Italy
PHPTAL mailing list