简体   繁体   English

如何在服务器端获取“数据”

[英]How get the “data” at the server side

I have the next config into my angularjs: 我在我的angularjs中有下一个配置:

var config={ //config post
    method:"POST",
    url:"http://localhost/APIREST/controllersencillo", 
    params: {tabla : "PintaMonas"}, //without id is insert, with id is update
    data: {PMcolor: "Azul tostado", PMpartes: "Un poquito de las orjeas y un bigote a lo Dali, quizas le alegre la cara", PMcosteTotal: "445" }
  }

When i call to the server work perfectly, this isn't the problem. 当我打电话到服务器正常工作时,这不是问题。 The problem it's how get the data . 问题是如何获取数据

My function POST of my server is: 我服务器的功能POST是:

 $arrayDatos = $this->post('datosSend');
            echo 'Tipe of data: '.gettype($arrayDatos);
                    print_r($arrayDatos);

                    die();

Any solution? 有什么办法吗? I didn't find anything similar in the web (include stack overflow). 我在网络上没有找到任何类似的东西(包括堆栈溢出)。

Thanks in advance. 提前致谢。

试试这个$arrayDatos = $_POST;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM