Note that there are some explanatory texts on larger screens.

plurals
  1. POCakePHP - FormHelper not outputting form tags
    text
    copied!<p>I have the following form declaration: </p> <pre><code>&lt;div class="edit-dialog span-10" style="display:none;"&gt; &lt;div class="edit-message span-10" style="margin-bottom:30px;"&gt; &lt;span&gt;Editing: &lt;a style="text-decoration:none"&gt;&lt;/a&gt;&lt;/span&gt; &lt;/div&gt; &lt;?php echo $this-&gt;Form-&gt;create('Voicenote', array('action' =&gt; 'edit')); echo $this-&gt;Form-&gt;input('title', array( 'div' =&gt; false, 'class' =&gt; 'input-text recorder', 'label' =&gt; array( 'class' =&gt; 'inlined', 'text' =&gt; '' ), 'id' =&gt; 'VoicenoteEditTitle', 'placeholder' =&gt; 'Title', 'style' =&gt; 'margin-bottom:10px;', 'onsubmit' =&gt; 'return false;' )); echo $this-&gt;Form-&gt;input('tags', array( 'div' =&gt; false, 'class' =&gt; 'input-text recorder', 'id' =&gt; 'VoicenoteEditTags', 'label' =&gt; false, 'placeholder' =&gt; 'Tags', 'onsubmit' =&gt; 'return false;' )); echo $this-&gt;Form-&gt;button('Cancel', array( 'class' =&gt; 'button medium blue', 'id' =&gt; 'cancel-edit', 'style' =&gt; 'float:left;margin-top:50px;' )); echo $this-&gt;Form-&gt;submit('Save', array( 'class' =&gt; 'button medium blue', 'id' =&gt; 'save-edit', 'style' =&gt; 'float:right;margin-top:50px;' )); ?&gt; &lt;input type="hidden" id="edit-container-index" value=""&gt; &lt;/div&gt; </code></pre> <p>It's not outputting the <code>&lt;form&gt;&lt;/form&gt;</code> tags and I have declared my forms this way throughout my app, adding the <code>$this-&gt;Form-&gt;end()</code> doesn't work either, any clues?</p> <p>EDIT: explicitly declaring the <code>&lt;form&gt;&lt;/form&gt;</code> tags does not output them either</p> <p>EDIT 2: there is something really weird I'm noticing. I have 4 forms on the page with the problem, If I remove the rendering of the element with the problem, another one of my forms wont render, the one right after it.</p>
 

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