Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // src/Acme/AccountBundle/Form/Type/RegistrationType.php
- namespace Acme\AccountBundle\Form\Type;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\FormBuilderInterface;
- class RegistrationType extends AbstractType
- {
- public function buildForm(FormBuilderInterface $builder, array $options)
- {
- $builder->add('username', 'text')
- ->add('password', 'password')
- ->add('email', 'email')
- ;
- $builder->add('save', 'submit');
- }
- public function getName()
- {
- return 'registration';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement