The html Helper does not implement such a behavior. You either have
attributes for all th's or for none.

So you have a number of possibilities: you either don't use a helper
and write the HTML yourself (which shouldn't be hard).

Or (if you make use of this helper function very often and changing all
instances would be tedious) you write your own function (probably
similar to the one in html Helper) that does excactly what you want.

Another very ugly possibility would be to change the core html Helper
code to do what you want, which I do not recommend.

On Dec 14, 6:39 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I need add an attribute for only a th, but the $helper extend to every
> TH.
> I want create a colspan for the 3 th.
> Ho I can?
>
> $thop=array(COLSPAN=>1);
> $th = array (
>             $pagination->sortBy('id'),
>             $pagination->sortBy('title'),
>             $pagination->sortBy('created'),
>                         "Actions"
> ); // Generate the pagination sort links
> echo $html->tableHeaders($th,null,$thop); // Create the table headers
> with sort links if desired
> 
> Thanks!


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to