Hey,
So I have custom columns defined with $crud->columns() that use the dates
$crud->columns('sName',$date->format('d-m-Y'),$date->modify('+1 weeks')->format('d-m-Y'));
I then want to run a callback on the custom columns,
$crud->callback_column($date->format('d-m-Y'),array($this,'_test'));
Which works perfectly, however, I need to try and capture the column header somehow and I can't figure out how.
Essentially, I want to cross-reference the column header (date) to see if there is a record in the database that corresponds to that date and matches sName, I can do this fine. I just can't seem to get my head around being able to read the column header in the callback function.
Any ideas? :)
Thanks,
Vari