Skip to content

Instantly share code, notes, and snippets.

@hartym
Forked from ubermuda/sfform_processvalues.php
Created May 15, 2009 17:43
Show Gist options
  • Save hartym/112330 to your computer and use it in GitHub Desktop.
Save hartym/112330 to your computer and use it in GitHub Desktop.
<?php
class myForm extends sfFormDoctrine
{
public function processValues($values = null)
{
$values = parent::processValues($values);
// calculate the value of virtual field "foo"
$values['foo'] = $foo;
return $values;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment