Skip to content

Instantly share code, notes, and snippets.

@tcarlsen
Created August 20, 2012 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcarlsen/3403301 to your computer and use it in GitHub Desktop.
Save tcarlsen/3403301 to your computer and use it in GitHub Desktop.
<?php
namespace Minecrafter\SiteBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class SignupForm extends AbstractType
{
public function buildForm(FormBuilder $builder, array $options)
{
$builder->add('mail', 'text', array('label' => 'Mail'));
$builder->add('minecraft_nick', 'text', array('label' => 'Minecraft Brugernavn'));
$builder->add('password', 'repeated', array('label' => 'Password','type' => 'password'));
}
public function getName()
{
return 'signup';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment