Skip to content

Instantly share code, notes, and snippets.

@odino
Created August 25, 2010 09:43
Embed
What would you like to do?
###### CONTROLLER
$this->form = new myForm(array(), array('user' => $this->getUser()));
###### FORM
public function configure()
{
parent::configure();
if(!$this->getOption('user') instanceOf myUserClass)
{
throw new ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment