[eluser]pck76[/eluser]
Hi,
I have a registration form that collects several info that should be inserted in the db, including a confirmation code generated by the controller.
I'm new to CI but understand this should be done by the model, but I don't know how to pass ALL the data from the post to the model.
can I do something like
Code:
$this->modelname->insertInDb($this->input->post(), $confirmation_code);
?
I would like to avoid to have to pass all params manually (eg $this->input->post('name'), $this->input->post('surname'), ....)
any trick?