cakephp/cakephp — pull request #3351 by jippi (2014-04-18 14:10:27+00:00)
Title: Don't use any groupTemplate or generic template for hidden fields

They should just be returned as-is based on their own input template.

Say you have a form template config like this (Twitter Bootstrap compatible):

```
$config = [
'formGroup' => '{{label}}

{{input}}{{error}}

',
];
```

Then the hidden field would also include the div in the output, even though nothing
is visible.

This will screw up the visible form quite a bit, since the div will still consume the space
horizontally, but vertically be just 0 (1?) px high.

Additionally this PR includes the `error` in both groupTemplate and label template for even more
flexibility

This is the code needed to reach quite a lot of Bootstrap compat based on this PR
```
$config = [
'fieldset' => '{{content}}',

'formGroup' => '{{label}}

{{input}}{{error}}

',

'groupContainer' => '

{{content}}

',
'groupContainerError' => '

{{content}}

',

'input' => '',
'error' => '

{{content}}

',

'checkboxFormGroup' => '{{label}}

{{input}}

',
];
```