Skip to content

The variable name in the example of renderDecorated() in Forms is confusing #118

@s-ohnishi

Description

@s-ohnishi

The explanation of renderDecorated() given as an example of how to use Forms is shown below.

echo $element->renderDecorated('nameLast');
echo $element->renderDecorated('nameFirst');

but this gives the impression that renderDecorated() is a method of an element.
In fact, it is a method of the ContactForm class that extends Forms, so a variable name like $form instead of $element would be less confusing.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

Status

Released

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions