⚠ 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 is not working

callback_column

  • Please log in to reply
2 replies to this topic

#1 Ankit Limkar

Ankit Limkar

    Newbie

  • Members
  • Pip
  • 9 posts

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??

 

 

issue_2.jpg


#2 Paul Savostin

Paul Savostin

    Advanced Member

  • Members
  • PipPipPip
  • 229 posts

Posted 27 October 2015 - 03:15 PM

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



#3 Ankit Limkar

Ankit Limkar

    Newbie

  • Members
  • Pip
  • 9 posts

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 :)

 







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users