⚠ 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. ⚠

  •     

profile picture

callback_column is not working



Ankit Limkar
  • profile picture
  • Member

Posted 27 October 2015 - 07:39 AM

Hello there,

 

I am using callback_column but it is not working. I at last tried to return 'Hello' but that even is not shown.

 

$crud->callback_column('class_id',array($this,'load_class_in_view'));

 

function load_class_in_view($pk_value, $row)
{
    return "Hello";
}

 

Any Help??

 

 

[attachment=1027:issue_2.jpg]

Paul Savostin
  • profile picture
  • Member

Posted 27 October 2015 - 15:15 PM

We need more info. Paste here full controller code. Did u set 'class_id' in ->columns?


Ankit Limkar
  • profile picture
  • Member

Posted 28 October 2015 - 03:24 AM

Thanks Paul for help.

 

Just got the issue while pasting code for you.

 

It was not working since I had written $crud->set_relation('class_id','class','id');

 

Now solved.

 

Thanks again :)