Labels are supposed to be used with input fields. You should be using
<th> for table column headers.

On May 8, 4:13 pm, ZAky <procsh...@gmail.com> 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'=>false [or] null));
>
> and this
>
> $this->Form->label('status','Status',array('label'=>array('for'=>false
> [or] null)));
>
> Just using <?php echo $this->Form->label('status');?> produce
> <label for="status">Status</label>
> When I use it for table columns header I have no element with
> id="status".
> The W3C Validation Service also arise a warning about it.
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to