Skip to content

Instantly share code, notes, and snippets.

@nixilla
Created December 12, 2012 10:17
Show Gist options
  • Select an option

  • Save nixilla/4266627 to your computer and use it in GitHub Desktop.

Select an option

Save nixilla/4266627 to your computer and use it in GitHub Desktop.
<?php
class EntryForm extends BaseEntryForm
{
public function configure()
{
$this->widgetSchema['cars'] = new sfWidgetFormChoice(array(
'choices' => array(),
'expanded' => true
));
$this->validatorSchema['cars'] = new sfValidatorChoice(array(
'choices' => array()
));
}
}
<?php
class UserForm extends Something
{
public function configure()
{
$this->embedForm('entry', new EntryForm());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment