diff --git a/en/appendices/5-2-migration-guide.rst b/en/appendices/5-2-migration-guide.rst index 79877bdace..48b89a093c 100644 --- a/en/appendices/5-2-migration-guide.rst +++ b/en/appendices/5-2-migration-guide.rst @@ -93,6 +93,8 @@ View templates using ``DELETE`` method. - ``HtmlHelper::importmap()`` was added. This method allows you to define import maps for your JavaScript files. +- ``FormHelper`` now uses the ``containerClass`` template to apply a class to + the form control div. The default value is ``input``. Error ----- diff --git a/en/views/helpers/form.rst b/en/views/helpers/form.rst index ea60026133..af54ba2b5a 100644 --- a/en/views/helpers/form.rst +++ b/en/views/helpers/form.rst @@ -376,13 +376,14 @@ methods of FormHelper. By default the ``control()`` method will employ the following widget templates:: - 'inputContainer' => '
{{content}}
' + 'inputContainer' => '
{{content}}
' 'input' => '' 'requiredClass' => 'required' + 'containerClass' => 'input' In case of validation errors it will also use:: - 'inputContainerError' => '
{{content}}{{error}}
' + 'inputContainerError' => '
{{content}}{{error}}
' The type of control created (when we provide no additional options to specify the generated element type) is inferred via model introspection and