Note that there are some explanatory texts on larger screens.

plurals
  1. POSymfony2 FormBuilder isn't rendering text fields
    primarykey
    data
    text
    <p>I'm using Symfony's <a href="http://symfony.com/doc/master/book/forms.html" rel="nofollow">FormBuilder</a> to create a form and render it via Twig.</p> <p>I use this as my Type:</p> <pre><code>&lt;?php namespace Vendor\AppBundle\Form; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\AbstractType; class RequestType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder-&gt;add('name', 'text'); $builder-&gt;add('email', 'email'); $builder-&gt;add('question', 'textarea'); } public function getDefaultOptions(array $options) { return array('data_class' =&gt; 'Vendor\\AppBundle\\App\\Request'); } /** * Returns the name of this type. * * @return string The name of this type */ public function getName() { return 'request'; } } </code></pre> <p>When I render my form (with <code>form_widget(form.field)</code>) everything looks great, except for the <code>name</code> field, that doesn't output any input field. If I change to something like "email", it works perfectly.</p> <p>I'm using Sf2.3 BETA 1. Any thoughts on why does this happen with text fields only? It's woth noting that the labels, fieldsets, and everything is outputted, except the actual <code>&lt;input&gt;</code> tag.</p> <p><strong>EDIT 1:</strong> <a href="http://pastebin.com/CKBzYd0r" rel="nofollow">This</a> is the Controller Code, in case you need it. </p> <p><strong>EDIT 2:</strong> It's worth noticing that this is an update from a Sf2.1 app to Sf2.3 BETA 1. The code has been updated, but perhaps something's wrong with that?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload