On 16-09-2009 at 15:44:51 Marco Pivetta <ocram...@gmail.com> wrote:
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).
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
PHPTAL mailing list