1

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.

4

1 回答 1

0

您可以更改主题使用 ex:datatables搜索是可见数据的客户端。

注意:此解决方案可能不适用于大量行。

于 2014-05-27T19:30:34.863 回答