I am currently sending Ajax
% of%, but I need to send another data:
//data que necesito enviar
var ParamObjSend = {
"id" :$("#id").val(),
};
var array = [1,2,3,4];
$.ajax({
type: "POST",
url: "<?php print base_url();?>Controller/Guardar",
data: {"array": JSON.stringify(array), ParamObjSend}, //de esta forma sigue sin funcionar
success: function(objView){
alert("entro");
}
});
When I send it, I can not capture it with Array
:
public function Guardar () {
$dataPost = $this->input->post('id');//no llega
}