0

我如何使用以下 codeigniter-base-model MY_Model 的 jamierum 插入它,其中数组键(人员、学生)是模型。

    $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',     
            )
        )
    );
4

0 回答 0