
Untitled
By: a guest on
May 20th, 2012 | syntax:
None | size: 0.50 KB | hits: 19 | expires: Never
<?php
# namespace Path\To\Your\Bundle\Form;
class ItemLocaleType extends AbstractType
{
public function buildForm(FormBuilder $builder, array $options)
{
$builder->add('title', 'text', array(
'required' => false,
));
}
public function getDefaultOptions(array $options)
{
return array(
'data_class' => 'Path\To\Your\Bundle\Entity\ItemLocale',
);
}
public function getName()
{
return 'itemlocaleform';
}
}