将数据从dataTable保存到数据库

how can I save all my datatable data to my database?, im using jquery and php to do this dynamic.

        $('#bot_guar').click( function () {
        //var rows = $("#tabla1").dataTable().fnGetNodes(); 

        var oTable = $('#tabla1').DataTable();
        var data1 = oTable.rows().data();
        //alert(data1.length);  
        $.ajax({
        type:"POST",
        dataType:'json',
        url: "<?= Router::Url(['controller' => 'cab_facturas', 'action' => 'addDetFac'], TRUE); ?>/",//teacher//getdata/3
        data:data1, 
        success: function(data){    
            alert(data);
        }//success
        });     

    }); 

this is what I had to POST the data from datatable, but I dunno why is the function to send to my php function that will insert.