I need to use:
$crud->set_relation('buyerid', 'user','username');
and after
$crud->callback_column('buyerid', array($this, '_format'));
but its dosen't work
please help
callback_column in a set_relation field
Started by rolo2012, 06 August 2012 - 17:39 PM
- Single Page
Posted 06 August 2012 - 17:39 PM
Posted 21 August 2012 - 13:13 PM
maybe you want to write this:
If that still doesn't work, please look at /topic/254-set-relation-breaks-processing-of-field-with-same-name-returned/page__p__982#entry982
$crud->callback_column('buyerid', array($this, function($value, $row){return '__'.$value;}));
If that still doesn't work, please look at /topic/254-set-relation-breaks-processing-of-field-with-same-name-returned/page__p__982#entry982