Re: 1.3 omit attribute

2010-05-09 Thread Emil Christensen
The whole point of a tag, is to label a specific input field. So there would be no reason to implement a feature to omit the tag in any framework. I can't tell you if it is possible or not, however I would advice that if you have a need to remove the for attribute from the label, you sho

Re: 1.3 omit attribute

2010-05-09 Thread Andy Dirnberger
I agree. While the for attribute is optional, Cake assigns an id attribute to your inputs so it only makes sense that it would assign a for attribute to the associated label. You said you aren't using the label with an input field, which is the purpose of the label element. If that really is the c

Re: 1.3 omit attribute

2010-05-09 Thread euromark
i dont think the "for" element should be omitted for labels as it is part of it - there are lots of other xhtml elements that would be more appropriate if there is no id to refer to On 9 Mai, 20:21, Zaky Katalan-Ezra wrote: > I use for column headers, thank you. > But this wasn't my question. >

Re: 1.3 omit attribute

2010-05-09 Thread Zaky Katalan-Ezra
I use for column headers, thank you. But this wasn't my question. How do I omit the automated 'for' attribute for the $this->Html->label. On Sun, May 9, 2010 at 1:01 AM, Andy Dirnberger wrote: > Labels are supposed to be used with input fields. You should be using > for table column headers.

Re: 1.3 omit attribute

2010-05-08 Thread Andy Dirnberger
Labels are supposed to be used with input fields. You should be using for table column headers. On May 8, 4:13 pm, ZAky wrote: > I am trying to omit the auto generated  'for' attribute for > $this->Html->label with no success. > > I tried: > $this->Form->label('status','Status',array('for'=>fal

1.3 omit attribute

2010-05-08 Thread ZAky
I am trying to omit the auto generated 'for' attribute for $this- >Html->label with no success. I tried: $this->Form->label('status','Status',array('for'=>false [or] null)); and this $this->Form->label('status','Status',array('label'=>array('for'=>false [or] null))); Just using Form->label('sta