when i try to get the parameter from url its returning nothing
Here is my url : http://localhost/myapp/web/dailydata/payment/amount/1000
Here is my symfony script :
use Symfony\Component\HttpFoundation\Request;
.
.
public function MyAction()
{
$request = $this->getRequest();
$amount = $request->request->get('amount');
echo 'Amount ='.$amount;
exit;
}
$request->attributes->get('amount')works for me.