Disable wrapping div on Inputs



I have some Problems with the form helper. Is there a way to disable the wrapping div on input fields or is it possible to change the class from “input text” to a custom one? Is it also possible to turn it off globally? It conflicts with the classes from semantic-ui!

Now it looks like:

<div class="input text">
    <input type="text" name="query" placeholder="Search" id="query">

But it should look like (Without the wrapping DIV):

<input type="text" name="query" placeholder="Search" id="query">

Thank you for your help!


Fixed it like described in the documentation on https://book.cakephp.org/3.0/en/views/helpers/form.html#customizing-the-templates-formhelper-uses

But isn’t there an easier way to do this like applying a “div” => false on the form element?


The Cake3 way is to define the inputcontainer, no shorter way.