Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inny][Symfony2]Jak usunąć wyświetlające się w formularzu 0, symfony 2 Renderowanie formularzy
silverwind
post
Post #1





Grupa: Zarejestrowani
Postów: 80
Pomógł: 0
Dołączył: 8.02.2013

Ostrzeżenie: (0%)
-----


Witam
Osadziłem kolekcje w formularzu i na stronie wyświetla mi nazwę i np Property jej (ją usunąłem label=> false) niestety poniżej jej wyświetla 0 to jest chyba tablica w której jest umieszczona.
Jak mogę się jej pozbyć ? próbowałem array('entry_type' => PropertyType::class array (label=>false) ale wyświetla mi error
  1. public function buildForm(FormBuilderInterface $builder, array $options) {
  2. $builder
  3. ->add('property', CollectionType::class,
  4.  
  5. 'entry_type' => PropertyType::class,
  6. 'by_reference' => false,
  7. 'allow_delete' => true,
  8. 'allow_add' => true,
  9. // 'label'=> false
  10. ))
  11. ->add('name', TextType::class, array(
  12. 'label' => 'Właściciel'
  13. ))
  14. ->add('adress', TextType::class, array(
  15. 'label' => 'Adress właściciela'
  16. ))
  17. ->add('submit', SubmitType::class, array(
  18. 'label' => 'Dodaj',
  19. ));
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 18.09.2025 - 23:10