Posted By

skwok on 10/01/09


default Value symfony sfPropelForm

Versions (?)

sfPropelForm default value

 / Published in: PHP

The following snippet sets a value in sfPropelForm. I have tried $form->getValues() and setting a value in it and also getting the embedded object and calling one of the setters without success.

  1. $u = $request->getParameter('u');
  2. $form = new MyPropelForm()
  3. $form->setDefault('form_param_name', $u);

Report this snippet  

You need to login to post a comment.