Skip to content

Instantly share code, notes, and snippets.

@bshaffer
Created April 13, 2011 05:58
Show Gist options
  • Save bshaffer/917042 to your computer and use it in GitHub Desktop.
Save bshaffer/917042 to your computer and use it in GitHub Desktop.
Hadori: from actions.class.php - processForm function
<?php
abstract class autoSf_guard_user_oldActions extends sfActions
{
// ....
protected function processForm(sfForm $form)
{
$form->bind($this->getRequest()->getParameter($form->getName()), $this->getRequest()->getFiles($form->getName()));
if ($form->isValid())
{
$sf_guard_user = $form->save();
$this->dispatcher->notify(new sfEvent($this, 'admin.save_object', array('object' => $sf_guard_user)));
return $sf_guard_user;
}
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment