I'm trying to change table settings (specifically the headers) in cakephp but I can't seem to get anything to work.
I tried using the advice from this post, but any changes I make aren't reflected in my table. cakephp tableHeaders and width
All I'm trying to do is print table headers and be able to adjust the width. No matter what I change the width to it won't work. I tried putting it as a class in the css file, and then call that class but nothing changes.
<?
$trOptions = array();
$thOptions = array('width'=>200);
echo $this->Html->tableHeaders(array('Date', 'Title', 'Active'),$trOptions, $thOptions);
?>
If, for whatever reason, you'd want to do this the CakePHP way: $this->Html->tableHeaders( array('Date', 'Title', 'Active'), array('class' => 'header_row'));
Then your CSS should be .header_row th { width: 200px; }
in your stylesheet.
And seriously, don't use CakePHP...