public function daftar_menu($value = '') { $this->datatables->select('id,nama,alias,harga,kategori,kategori_menu,type')->add_column('Actions', get_edit_delete_ajax('$1'), 'id')->edit_currency('harga', '$1', 'harga')->from('atombizz_menu'); echo $this->datatables->generate(); }
public function rak() { //show category with edit and delete button use ajax $this->datatables->select('id,kode,nama,keterangan')->add_column('Actions', get_edit_delete_ajax('$1'), 'id')->from('atombizz_rack'); echo $this->datatables->generate(); }