Hi there,
Inside my Angularjs script I send data to Zend framework controller:
$http.post( ‘http://public/moduleWall/ctrlSave’, obj, header )
.then( function( response ) {});
My ZF2 controller receive data from Angular script:
$postdata = file_get_contents(“php://input”);
I can read $postdata inside ZF2. But what I have to do to save this postdata to my database?
I know what to do to send data to browser (there are plenty of tutorials), but reverse process is difficult for me (I can’t see useful tutorials).