Hello @johnny , i have question. I can show data with GCE, but some table can’t show the data.
This is my MySql :
CREATE TABLE `ppob_product` (
`id` int NOT NULL,
`product_name` varchar(22) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
INSERT INTO `ppob_product` (`id`, `product_name`) VALUES
(1, 'aa'),
(2, 'ss');
ALTER TABLE `ppob_product`
ADD PRIMARY KEY (`id`);
COMMIT;
and this is my code :
public function index()
{
$crud = $this->_getGroceryCrudEnterprise();
$crud->setTable('ppob_product');
$crud->unsetCssTheme();
//$crud->where(['per_info_personal.id_payroll >= ?' => 0]);
$crud->setSubject('Produk', 'Daftar Produk');
$crud->columns(['product_name']);
$crud->setCsrfTokenName('_token');
$crud->setCsrfTokenValue(csrf_token());
$output = $crud->render();
return $this->_showOutput($output);
}
the data not showing :
can you help me @johnny ?

