How to send complete POST to Model in Code Igniter How to send complete POST to Model in Code Igniter codeigniter codeigniter

How to send complete POST to Model in Code Igniter


Simply pass $_POST variable to method that you want to work with all POST variables. I see your concern, but rest assured: $_POST is sanitized by security filtering function whenever controller is instantiated.

So:

$this->Model_name->add_contact($_POST);