Slide 67
Slide 67 text
Bernhard Schussek @webmozart 67/96
Creating a form type
class NinjaType extends AbstractType
{
...
public function buildForm($builder, $options)
{
$builder->add('name', 'text')
->add('skill_level', 'choice', array(
'choices' => array(...)
))
->add('assassinations', 'number');
}
}