Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace UserBundle\Form;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\FormBuilderInterface;
- class RegistrationType extends AbstractType
- {
- public function buildForm(FormBuilderInterface $builder, array $options)
- {
- $builder->add('firstname');
- $builder->add('lastname');
- }
- public function getParent()
- {
- return 'FOS\UserBundle\Form\Type\RegistrationFormType';
- }
- public function getBlockPrefix()
- {
- return 'app_user_registration';
- }
- public function getName()
- {
- return $this->getBlockPrefix();
- }
- }
Add Comment
Please, Sign In to add comment