symfony get post or get parameters

if you do not want use form.bind(). you can get them by this way.
 
   // $_GET parameters
    $request->query->get('name');

    // $_POST parameters
    $request->request->get('name');
   // post , all parameters
$request->request->all();

评论

热门博文