In my controller perform the following arrangement
$DataPerson=
array(
'documentos' => $this->input->post('documentos'),
'num_identificacion' => $this->input->post('num_identificacion'),
'nombre' => $this->input->post('nombre'),
'apellido' => $this->input->post('apellido'),
'sexo' => $this->input->post('sexo'));
$envio = $this->Person_model->insertPerson($DataPerson);
The model receives the parameter:
public function insertPerson($DataPerson)
{
}
How can I navigate the $DataPerson
so that I can insert that data into the DB?
I would appreciate the interest.