Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Acme\DemoBundle\Form;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\FormBuilder;
- class ContactType extends AbstractType
- {
- public function buildForm(FormBuilder $builder, array $options)
- {
- $builder->add('something', 'repeated', array('type' => 'text'));
- $builder->add('message', 'textarea');
- }
- public function getDefaultOptions(array $options)
- {
- return array(
- 'data_class' => 'Acme\DemoBundle\Entity\Contact'
- );
- }
- public function getName()
- {
- return 'contact';
- }
- }
Add Comment
Please, Sign In to add comment