On Feb 14, 12:38 pm, Roman <brae...@gmail.com> wrote:
> With the HTML helper it is easy to set a CSS class for a <td>:
>
> <?php echo $html->tableCells(
> 'one',
> array('two',array('class'=>'myCssClass'),
> 'three'
> );?>
>
> As I understand the documentation, it is only possible to set a CSS
> class for <tr> and for all the </th>'s:
>
> <?php echo $html->tableHeaders(
>     array('Date','Title','Active'),
>     array('class' => 'status'),
>     array('class' => 'product_table')
> );?>
>
> Is there a way to set a CSS class for a single <th>?

manually.

submit a patch with your enhancement ticket if you want the
tableHeaders method to act the same as tableCells.

hth,

AD
--~--~---------~--~----~------------~-------~--~----~
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