我想改变这在目前看起来复选框模板像CakePHP的3表单辅助复选框模板
'checkbox' => '<input type="checkbox" name="{{name}}" value="{{value}}"{{attrs}}>',
'checkboxWrapper' => '{{label}}',
生成HTML像
<div class="form-group">
<input class="form-control" type="hidden" name="active" value="0">
<label for="active">
<input type="checkbox" name="active" value="1" id="active">
Active
</label>
</div>
</div>
但我需要的是代码应该看起来像
<div class="checkbox m-b-15">
<input class="form-control" type="hidden" name="active" value="0">
<label>
<input type="checkbox" name="active" value="1" id="active">
<i class="input-helper"></i>
Active
</label>
</div>
我应该如何真正改变表单助手的模板和模板以便代码看起来像我需要的?
你大概读[自定义表单助手采用模板(http://book.cakephp.org/3.0/en/views/助手/形式。html#customizing-the-templates-formhelper-uses)文档。向我们展示您尝试过的代码,并告诉我们有关不适用的具体细节。 –