Skip to content

Instantly share code, notes, and snippets.

@vicmar
Last active December 27, 2015 21:29
namespace Devvness\EventBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class BaseEventType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('name')
->add('category')
->add('subcategory');
}
public function getName()
{
return 'base_event';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment