Re: $html->tableHeaders using the colspan for a single TH

2012-08-10 Thread Ezequiel Pozzo
This is a really old post but I'm writing this for future reference (if you search cakephp tableheaders colspan this is one of the first hits). Cake 2.2 implements a way of doing this: http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html El jueves, 14 de diciembre de 2006 21:42:22 U

Re: $html->tableHeaders using the colspan for a single TH

2006-12-14 Thread Seb
I came accross this same problem 2 wks or so ago and decided I coun't live without that...! So I created my own helper, extending HtmlHelper and implemented the function as follow; [code location="my custom/extended helper"] /** * Returns a row of formatted and named TABLE headers. * * @param

Re: $html->tableHeaders using the colspan for a single TH

2006-12-14 Thread Falagar
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

$html->tableHeaders using the colspan for a single TH

2006-12-14 Thread [EMAIL PROTECTED]
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'),