catch ajax content with getContent
This commit is contained in:
parent
0d750d6b7c
commit
cada22694d
@ -120,22 +120,21 @@ class DefaultController extends Controller {
|
|||||||
public function addSellingAction( Request $request ) {
|
public function addSellingAction( Request $request ) {
|
||||||
// var_dump( $request->request );
|
// var_dump( $request->request );
|
||||||
// die();
|
// die();
|
||||||
|
$json = json_decode( $request->getContent() );
|
||||||
// link selling record with user, festival
|
// link selling record with user, festival
|
||||||
// setup dates
|
// setup dates
|
||||||
// persist all
|
// persist all
|
||||||
// fetch back history of selling
|
// fetch back history of selling
|
||||||
echo "<pre>";
|
// echo "<pre>";
|
||||||
var_dump( $_POST );
|
// var_dump( $request->getContent() );
|
||||||
|
//
|
||||||
|
// echo "</pre>";
|
||||||
|
|
||||||
echo "</pre>";
|
// return var_dump( $request->getContent() );
|
||||||
|
return new JsonResponse( [
|
||||||
return var_dump( $request->request );
|
"message" => "ok",
|
||||||
// return new JsonResponse( [
|
"recent_sellings" => [],
|
||||||
// "message" => "ok",
|
"dump" => $json,
|
||||||
// "recent_sellings" => [],
|
] );
|
||||||
// "dump" => $request->request->get( 'sellingComment' ),
|
|
||||||
// "dump2" => $request->getMethod(),
|
|
||||||
// "dump3" => $request->request->get( 'data' ),
|
|
||||||
// ] );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user