Server side DataTables with Ignited-Datatables Library

后端 未结 1 1937
深忆病人
深忆病人 2021-01-24 10:02

How to Server side DataTables with Ignited-Datatables Library?

My application use CodeIgniter.

Library that I use is Ignited-datatables Library.

My controll

相关标签:
1条回答
  • 2021-01-24 10:44

    There is error in your Code.

    public function get_team()
    {
        $this->load->library('Datatables');
        $this->datatables->select('*')
                    ->unset_column('id')
                    ->from('oric_team');
       echo $this->datatables->generate('json', '');
    
    }
    

    You are missing the Semi Colon before echo. I am using your code and everything is working fine after putting semi colon.

    0 讨论(0)
提交回复
热议问题