I have one table users in this i store 1 for website and 2 for domain and i display this table my code is,
$this->load->library('grocery_CRUD');
$crud = new grocery_CRUD();
$crud->set_table('users');
$crud->callback_column('listing_type',array($this,'type_change'));
$output = $crud->render();
return $output;
and my callback_column function,
public function type_change($value, $row)
{
if($value == 1)
{
return 'Website';
}
if($value == 2)
{
return 'Domain Name';
}
}
so,for this search is not working for listing type if anyone have solution for this please help me , thank you.