In symfony 2 controllers, every time I want to get a value from post I need to run:
$this->getRequest()->get(\'value1\'); $this->getRequest()->ge
Since you are in a controller, We assume to you are passing parameter Request; You can access all post $request->request->all(); This returns key-value pair array; On the other when using get request you access data using $request->query->all();
Request