Ok. So I won't post a question unless search to forums/googling don't help I just start learning CI and just learned GroceryCRUD - a great product btw ! -, to help me with all redundant creating form just to insert/view/delete. perfect solution to my case Now, I have a dead simple problem but for the life of me I just couldn't figure out why or how to debug yet.
I just need to 'set_relation' between 2 tables so that the related_field will just show dropdown and I can proceed normally Here are those 2 table structures:
Warehouse_Items - ID [primary] - Nama
Warehouse_Records - ID [primary] - Tanggal - Barang ( I need to link this field 'Barang' to 'Nama' in table Warehouse_Items )
this is the line to do that
$crud->set_relation('Barang', 'Warehouse_Items', 'Nama');
but, dropdown doesn't come out when add/edit
Maybe someone could share a thought ?