Search code examples
postsymfony1getparameter

symfony 1.4 how to get POST parameters?


I can get a parameter('id' for example) by $request->getParameter('id');

but if I use a form to POST the id, how could I get its value? $request->getParameter('id'); doesn't work.


Solution

  • sfWebRequest has getPostParameter(name, default)