⚠ 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 forum is read-only and soon will be archived. ⚠

callback_column in a set_relation field


  • Please log in to reply
1 reply to this topic

#1 rolo2012



  • Members
  • PipPip
  • 12 posts

Posted 06 August 2012 - 05:39 PM

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

#2 goFrendiAsgard


    Advanced Member

  • Members
  • PipPipPip
  • 137 posts

Posted 21 August 2012 - 01:13 PM

maybe you want to write this:
$crud->callback_column('buyerid', array($this, function($value, $row){return '__'.$value;}));

If that still doesn't work, please look at http://www.grocerycr...p__982#entry982

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users