таблицы:
- table_a
- table_b
вот код для модель
Код: Выделить всё
public function edit_this($ID_A)
{
return $this->db->table('table_a', '*i don't know how to insert the 2nd table')->where('ID_A', $ID_A)->get()->getRowArray();
}
Код: Выделить всё
public function this_edit($ID_A)
{
$data = [
'title' => 'Admin',
'navbartitel' => 'You know this',
'alledit' => $this->theModel->edit_this($ID_A),
'validation' => \Config\Services::validation()
];
return view('this/all/edit', $data);
}
кто-нибудь может помочь? спасибо
Подробнее здесь: https://stackoverflow.com/questions/672 ... odeigniter
Мобильная версия