如何使用jamierumbelow codeigniter-base-model MY_Model插入此数据,其中数组键(人员,学生)是模型。
$data = array (
'persons' => array(
'firstname' => 'john',
'lastname' => 'doe',
'othernames' => 'Kabiri',
'email' => 'jondoe@yahoo.com',
'students' => array(
'intake' => 'BCA-2009',
'admission_number' => 'BCA-001-029',
'date_of_admission' => strtotime('now'),
'former_school' => 'Former School',
)
)
);