When using the FormHelper->create(…), the HTML that gets rendered looks like this:
<form action="/blogs/add" method="post" accept-charset="utf-8">
<div style="display:none;">
<input type="hidden" name="_method" value="POST">
</div>
<!-- omitted: form inputs -->
</form>
Why is that div with the display:none; style there? How do I make it not show up?
UPDATE: Just to be clear, I’m wondering why both the div AND the hidden input inside the div show up. They don’t seem to be necessary, and therefore I don’t want them to be there.
The div is there to be valid HTML.
Edit: To answer your question, you can’t easily get rid of it. It’s hard-coded into FormHelper::create(), you’d have to override that method in a custom helper. Why is it bothering you anyways?