Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions en/views/helpers/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -2714,7 +2714,7 @@ template, such as::
$this->Form->setTemplates([
'autocomplete' => '<input type="autocomplete" name="{{name}}" {{attrs}} />'
]);

For more information on string templates, see :ref:`customizing-templates`.

Using Widgets
Expand Down
2 changes: 1 addition & 1 deletion en/views/helpers/html.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down
2 changes: 1 addition & 1 deletion fr/views/helpers/html.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down
2 changes: 1 addition & 1 deletion ja/views/helpers/html.rst
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ HtmlHelper によるタグ出力の変更
追加/置換するためのテンプレートの配列です。 ::

// config/my_html.php からテンプレートを読み込む。
$this->Html->setTemplates('my_html.php');
$this->Html->setTemplates('my_html');

// 指定したテンプレートを読み込む。
$this->Html->setTemplates([
Expand Down