Добрый день! Подскажите пожалуйста как получить все значение $_POST в цикле. Сейчас делаю вот так.
$add['title'] = $this->input->post('title');
$add['price'] = $this->input->post('price');
$add['articul'] = $this->input->post('articul');
$add['articul_partner'] = $this->input->post('articul_partner');
$add['discription'] = $this->input->post('discription');
$add['сharacteristics'] = $this->input->post('ch');
$add['text'] = $this->input->post('text');
$add['id_category'] = $this->input->post('category');
$add['id_subcategory'] = $this->input->post('subcategory');
$add['visible'] = $this->input->post('visible');
$add['hot'] = $this->input->post('hot');
$add['discount'] = $this->input->post('discount');
Строчка $this->input->post('title')
- альтернатива $_POST['title];
Как можно упростить этот код, у меня могут и тысячи быть таких полей, а каждый раз в ручную не хочется их вбивать.