The first parameter of sfForm accepts default values for your fields.
You can use it to fill your hidden fields as well:

$form = new MyForm(array('hidden_field' => 'hidden_value'));

If you do this in the action, you can access the request object as always.

public function executeHurray(sfWebRequest $request)
{
  $this->form = new MyForm(array('hidden_field' =>
$request->getParameter('hidden_param')));


Bernhard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to