sfPropelForm default value


/ Published in: PHP
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. $u = $request->getParameter('u');
  2. $form = new MyPropelForm()
  3. $form->setDefault('form_param_name', $u);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.