Created
April 13, 2011 05:58
-
-
Save bshaffer/917042 to your computer and use it in GitHub Desktop.
Hadori: from actions.class.php - processForm function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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