Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Toffiak\TestBundle\Form;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\FormBuilder;
- class SamopoczucieType extends AbstractType {
- public function buildForm(FormBuilder $builder, array $options) {
- $builder->add('samopoczucie', 'choice',
- array(
- 'choices' => array(
- 1 => 'bardzo źle',
- 2 => 'źle',
- 3 => 'średnio',
- 4 => 'dobrze',
- 5 => 'wspaniale'
- ),
- 'expanded' => true
- )
- );
- }
- public function getName() {
- return 'form_name';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement