Hi,

What I meant was:

tal:attributes="selected exists: isSelected"

Always try to avoid using php: constructs in your templates ;-)


Bets,
  Tjerk

2009/6/16 Kornel Lesiński <kor...@aardvarkmedia.co.uk>:
> On 16-06-2009 at 16:16:53 Igor Sverkos <igor.sverkos+php...@googlemail.com>
> wrote:
>
>> Hi,
>>
>> Tjerk Meesters wrote:
>>>
>>> As Kornel mentioned, this is fixed in the repos and it can be made to
>>> work for older versions by using "exists: isSelected" instead of
>>> "isSelected | nothing"
>>
>> I can use "exists" in PHPTALES? E.g.
>>
>> <option ... tal:attributes="selected php: exists: myVar">...</option>?
>
> No. Use isset() instead:
>
> php:isset(myVar)
>
> --
> regards, Kornel
>
> _______________________________________________
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>



-- 
--
Tjerk

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

Reply via email to