diff --git a/en/views/helpers/form.rst b/en/views/helpers/form.rst index 312a51c736..4cf6e8c2c1 100644 --- a/en/views/helpers/form.rst +++ b/en/views/helpers/form.rst @@ -142,7 +142,7 @@ Valid values: * ``'templates'`` - The templates you want to use for this form. Any templates provided will be merged on top of the already loaded templates. Can be either - a filename from ``/config`` or an array of templates to use. + a filename (without extension) from ``/config`` or an array of templates to use. * ``'context'`` - Additional options for the form context class. (For example the ``EntityContext`` accepts a ``'table'`` option that allows you to set the @@ -652,11 +652,11 @@ as well as HTML attributes. This subsection will cover the options specific to * ``$options['templates']`` - The templates you want to use for this input. Any specified templates will be merged on top of the already loaded templates. - This option can be either a filename in ``/config`` that contains the - templates you want to load, or an array of templates to use. - + This option can be either a filename (without extension) in ``/config`` that + contains the templates you want to load, or an array of templates to use. + * ``$options['labelOptions']`` - Set this to ``false`` to disable labels around - nestedWidgets or set it to an array of attributes to be provided to the + nestedWidgets or set it to an array of attributes to be provided to the ``label`` tag. Generating Specific Types of Controls @@ -2714,7 +2714,7 @@ template, such as:: $this->Form->setTemplates([ 'autocomplete' => '' ]); - + For more information on string templates, see :ref:`customizing-templates`. Using Widgets diff --git a/en/views/helpers/html.rst b/en/views/helpers/html.rst index 8c0d5e91d8..6064fb0940 100644 --- a/en/views/helpers/html.rst +++ b/en/views/helpers/html.rst @@ -765,7 +765,7 @@ file containing the tags you want to load, or an array of templates to add/replace:: // Load templates from config/my_html.php - $this->Html->setTemplates('my_html.php'); + $this->Html->setTemplates('my_html'); // Load specific templates. $this->Html->setTemplates([ diff --git a/fr/views/helpers/html.rst b/fr/views/helpers/html.rst index b91acba11b..c540867963 100644 --- a/fr/views/helpers/html.rst +++ b/fr/views/helpers/html.rst @@ -770,7 +770,7 @@ de caractères vers le fichier PHP contenant les balises que vous souhaitez charger, soit avec un tableau des templates à ajouter/remplacer:: // Charger les templates à partir de config/my_html.php - $this->Html->setTemplates('my_html.php'); + $this->Html->setTemplates('my_html'); // Charger les templates spécifiques. $this->Html->setTemplates([ diff --git a/ja/views/helpers/html.rst b/ja/views/helpers/html.rst index 9a599bbd22..dd03b73a5e 100644 --- a/ja/views/helpers/html.rst +++ b/ja/views/helpers/html.rst @@ -740,7 +740,7 @@ HtmlHelper によるタグ出力の変更 追加/置換するためのテンプレートの配列です。 :: // config/my_html.php からテンプレートを読み込む。 - $this->Html->setTemplates('my_html.php'); + $this->Html->setTemplates('my_html'); // 指定したテンプレートを読み込む。 $this->Html->setTemplates([