[PHPTAL] Multiple conditions

Anton Andrievskij x.meglio at gmail.com
Fri May 30 18:59:58 CEST 2008


>>> PHPTAL rewrites code in php: expressions to use TAL variables, so it
will work fine.

Please can you explain a bit more about this? How it works?

On Fri, May 30, 2008 at 7:47 PM, Kornel Lesinski <kornel at aardvarkmedia.co.uk>
wrote:

> On Fri, 30 May 2008 17:36:34 +0100, Anton Andrievskij <x.meglio at gmail.com>
> wrote:
>
>  1. But then php will check if real "products" variable exists but not
>> tal-object's product property?
>>
>
> PHPTAL rewrites code in php: expressions to use TAL variables, so it will
> work fine.
>
> php:isset(var) is equivalent to exists:var (but not in more complex case of
> exists:var/prop - then you're out of luck ;)
>
>  2. Why it is bad idea to have some logical operands in PHPTAL then?
>>
>
> It isn't. It's a bit of syntax that's missing from "plain" TAL.
>
>
> --
> regards, Kornel
>
> _______________________________________________
> PHPTAL mailing list
> PHPTAL at lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/phptal/attachments/20080530/61f078f7/attachment.htm


More information about the PHPTAL mailing list