Hello,
I have a timestamp field in my database which I want to be displayed as datetime format.
I implemented a callback_column which works fine on the grid view.
$crud->callback_column('created_on',array($this,'clb_timestamp_to_date'));
⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠
Posted 22 April 2015 - 20:44 PM
Hello,
I have a timestamp field in my database which I want to be displayed as datetime format.
I implemented a callback_column which works fine on the grid view.
$crud->callback_column('created_on',array($this,'clb_timestamp_to_date'));
Posted 23 April 2015 - 13:37 PM
Hi!
You should use the callback_read_field
The solutuin is here: http://www.grocerycr...he-read-method/