Created
August 20, 2012 11:17
-
-
Save tcarlsen/3403301 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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