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 :
> On 16-06-2009 at 16:16:53 Igor Sverkos
> wrote:
>
>> Hi,
>>
>> Tjerk Meesters wrote:
>>>
>>> As Kornel mentioned, thi
On 16-06-2009 at 16:16:53 Igor Sverkos
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.
...?
No. Use isset(
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.
...?
--
Regards,
Igor
_
Hi,
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"
Hope that helps :)
On 6/16/09, Igor Sverkos wrote:
> Hi,
>
> Tjerk Meesters wrote:
>> Hmm I don't think using "selected" as the value
Hi,
Tjerk Meesters wrote:
> Hmm I don't think using "selected" as the value is the solution to the
> exact problem here, because phptal does understand the so called
> binary attributes, such as selected and checked.
>
> Seems like the '| nothing' is causing the expression to change type
> and di
Hi,
Scott Trevithick wrote:
> The problem is that your array associates the PHP boolean value TRUE with the
> key 'isSelected'. 1 is the functional equivalent of TRUE in many languages,
> hence PHPTAL gives you 1 since you specified TRUE. Use the string 'selected'
> instead.
Mhh... I thought TAL
The problem is that your array associates the PHP boolean value TRUE
with the key 'isSelected'. 1 is the functional equivalent of TRUE in
many languages, hence PHPTAL gives you 1 since you specified TRUE. Use
the string 'selected' instead.
$options = array(
array(
'label' => 'Option1',