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
8 changes: 4 additions & 4 deletions docs/en/views/helpers/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ however, this parameter is used primarily to specify HTML tag attributes

### Creating Text Inputs

`method` Cake\\View\\Helper\\FormHelper::**text**(string $name, array $options)
`method` Cake\\View\\Helper\\FormHelper::**text**(string $fieldName, array $options = []): string

- `$name` - A field name in the form `'Modelname.fieldname'`.
- `$options` - An optional array including any of the
Expand All @@ -846,7 +846,7 @@ Will output:

### Creating Password Inputs

`method` Cake\\View\\Helper\\FormHelper::**password**(string $fieldName, array $options)
`method` Cake\\View\\Helper\\FormHelper::**password**(string $fieldName, array $options = []): string

- `$fieldName` - A field name in the form `'Modelname.fieldname'`.
- `$options` - An optional array including any of the
Expand Down Expand Up @@ -2136,7 +2136,7 @@ echo $this->Form->button('<em>Submit Form</em>', [

## Closing the Form

`method` Cake\\View\\Helper\\FormHelper::**end**($secureAttributes = []): string
`method` Cake\\View\\Helper\\FormHelper::**end**(array $secureAttributes = []): string

- `$secureAttributes` - Optional. Allows you to provide secure attributes
which will be passed as HTML attributes into the hidden input elements
Expand Down Expand Up @@ -2771,7 +2771,7 @@ As mentioned previously when using FormProtectionComponent, you should always cl
your forms using `Cake\View\Helper\FormHelper::end()`. This will
ensure that the special `_Token` inputs are generated.

`method` Cake\\View\\Helper\\FormHelper::**unlockField**($name)
`method` Cake\\View\\Helper\\FormHelper::**unlockField**(string $name): $this

- `$name` - Optional. The dot-separated name for the field.

Expand Down
6 changes: 3 additions & 3 deletions docs/en/views/helpers/html.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ methods of the HtmlHelper and how to use them.

### Creating Charset Tags

`method` Cake\\View\\Helper\\HtmlHelper::**charset**($charset=null): string
`method` Cake\\View\\Helper\\HtmlHelper::**charset**(?string $charset = null): string

Used to create a meta tag specifying the document's character. The default value
is UTF-8. An example use:
Expand Down Expand Up @@ -308,7 +308,7 @@ Will output:

### Creating Links

`method` Cake\\View\\Helper\\HtmlHelper::**link**($title, $url = null, array $options = []): string
`method` Cake\\View\\Helper\\HtmlHelper::**link**(array|string $title, array|string|null $url = null, array $options = []): string

General purpose method for creating HTML links. Use `$options` to
specify attributes for the element and whether or not the
Expand Down Expand Up @@ -895,7 +895,7 @@ Output:

## Changing the Tags Output by HtmlHelper

`method` Cake\\View\\Helper\\HtmlHelper::**setTemplates**(array $templates)
`method` Cake\\View\\Helper\\HtmlHelper::**setTemplates**(array $templates): $this

Load an array of templates to add/replace templates:

Expand Down
2 changes: 1 addition & 1 deletion docs/en/views/helpers/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ overriding the core helper with an application one. See the

## Generating URLs

`method` Cake\\View\\Helper\\UrlHelper::**build**($url = null, array $options = []): string
`method` Cake\\View\\Helper\\UrlHelper::**build**(array|string|null $url = null, array $options = []): string

Returns a URL pointing to a combination of controller and action.
If `$url` is empty, it returns the `REQUEST_URI`, otherwise it
Expand Down