I just tested callbackColumn for some type of fields (MySQL), here's my code :
$this->crud->setTable('my_table') ->setSubject('a line') ->callbackColumn('col_integer', function ($value, $row) { return "<a href='/integer/" . $value."' target='blank'>$value</a>"; }) ->callbackColumn('col_decimal', function ($value, $row) { return "<a href='/decimal/" . $value."' target='blank'>$value</a>"; }) ->callbackColumn('col_varchar', function ($value, $row) { return "<a href='/varchar/" . $value."' target='blank'>$value</a>"; }) ->callbackColumn('col_date', function ($value, $row) { return "<a href='/date/" . $value."' target='blank'>$value</a>"; }) ->callbackColumn('col_datetime', function ($value, $row) { return "<a href='/datetime/" . $value."' target='blank'>$value</a>"; }) ->callbackColumn('col_bool', function ($value, $row) { return "<a href='/bool/" . $value."' target='blank'>$value</a>"; }) ->displayAs('col_integer', 'Integer number') ->displayAs('col_decimal', 'Real number') ->displayAs('col_varchar', 'Character array') ->displayAs('col_date', 'Date') ->displayAs('col_datetime', 'Date and time') ->displayAs('col_bool', 'Boolean choice') ->editFields([ 'col_integer', 'col_decimal', 'col_varchar', 'col_date', 'col_datetime', 'col_bool' ]) ;
Here's my result :
col_integer : working
col_decimal : working
col_varchar : working
col_date : not working (nothing is displayed)
col_datetime : not working (nothing is displayed)
col_bool (tinyint) : working
Could you confirm the problem?
Thanks