Skip to content

Instantly share code, notes, and snippets.

@gregfroese
Created January 28, 2009 16:41
Show Gist options
  • Save gregfroese/54042 to your computer and use it in GitHub Desktop.
Save gregfroese/54042 to your computer and use it in GitHub Desktop.
/**
* Fills an object with posted form variables
*
* @param array Contains hash of values to load into the object (used in conjunction with SilkForm::auto_form)
*/
function fill_object_form($params) {
foreach($params as $key=>$value) {
$this->$key = $value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment