First of all i will describe my data situation to understand it better:
I have a table called for example table1(idtable2...etc.) and table2 (table2_name).
I have done a simple relation like this:
$this->grocery_crud->set_relation('idtable2','table2 ','table2_name');
And it looks perfectly in the list, but i want to assign a callback_column function like this:
$this->grocery_crud->callback_column('idtable2',array($this,'table_name'));
function table_name($value, $row)
{
echo "hi..";
}
But it doesn't work ! i tried to use this: $this->grocery_crud->callback_column('table2_name',array($this,'table_name')); , but it does not work!
What's happend ?
Regards.