Skip to content

Ability to wrap element for complex form rendering #216

@ntbatyr

Description

@ntbatyr

Feature Request

Adding a parent element, or at least wrapping it in a single block, made it easier to work with forms in complex rendering, without passing at a time. Usage practice can be dynamically assembled elements, the volume of which would not be small; It would also make it possible to write less code in the phtml file.

Q A
New Feature yes
RFC no
BC Break no

Summary

laminas-form/src/View/Helper/FormRow::render method

Implementation options: wrap_template option

  • request a template for sprintf
  • request a callable function as an argument already pass markup
  • request an array of options with attributes and element tag (although in this case only one element will be generated)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions