symfony save submitted form to database

Posted by Sejanus on Stack Overflow See other posts from Stack Overflow or by Sejanus
Published on 2010-03-19T06:52:04Z Indexed on 2010/03/19 7:31 UTC
Read the original article Hit count: 326

Filed under:
|
|

Maybe I am missing something, but in symfony examples, in form submission action there's nothing which indicates form data is saved to database. (link). How can I save everything to db?

Example from the link:

public function executeSubmit($request)
{
  $this->forward404Unless($request->isMethod('post'));

  $params = array(
    'name'    => $request->getParameter('name'),
    'email'   => $request->getParameter('email'),
    'message' => $request->getParameter('message'),
  );

  $this->redirect('contact/thankyou?'.http_build_query($params));
}

© Stack Overflow or respective owner

Related posts about symfony

Related posts about php