[eluser]Unknown[/eluser]
I'd like to be able to set up a table with no headings so that I can set my own, the table I'm currently working on has 3 header rows with colouring.
Now I've modified table.php to achieve this but I was wondering if there was a better way.
What I've done is to add a new method to allow the auto heading variable to be changed:
function set_auto_heading($set_value)
{
$this->auto_heading = $set_value;
}
then I've added a modification to the _set_from_object method to check the variable:
function _set_from_object($query)
{
if ( ! is_object($query))
{
return FALSE;
}
// First generate the headings from the table column names
if (count($this->heading) == 0
AND $this->auto_heading == TRUE)
{ ....
This achieves what I want at the expense of having to maintain this code change in every new release.
I'd request it as a new "feature" except that I can't post there and besides which one of you super-clever CI people might know a better way to do this.
TetleyK