Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. $builder->add('title')
  2.  
  3. public function getName()
  4. {
  5. return 'progress';
  6. }
  7.  
  8. $progress = new Progress();
  9. $form = $this->createForm(new ProgressType(), $progress);
  10.  
  11. $form->handleRequest($request);//here comes "title"
  12.  
  13. public function getName()
  14. {
  15. return 'progress';
  16. }
  17.  
  18. $form = $formFactory->createNamed(null, 'progress', $progress);
  19.  
  20. $form = $formFactory->createNamed(null, 'progress', $progress, array('method'=>'PUT'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement