public function setColumnsToDisplay( $columnsNames )
{
if(!is_array($columnsNames))
{
$columnsNames = array($columnsNames);
}
$this->columnsToDisplay = $columnsNames;
}
For example, i want only 3 columns of data to display on the table,
$columnNames=array(‘label’,‘0’,‘1’);
$view->setColumnsToDisplay($columnNames)
Then i find column ‘0’ will not be displayed on the table, others are fine.