views:

112

answers:

1

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.

+1  A: 

sfWebRequest has getPostParameter(name, default)

Raoul Duke
Thank you very much! I searched google a lot but didn't find the answer, seems that most of the information about symfony are out-of-date.
Peter Long