Skip to content

Use validators to verify input attributes #145

@jrauh01

Description

@jrauh01

We should validate input attributes like pattern or minlength on the server side.

For that we could automatically assign the corresponding validators from IPL Validator (existing or new ones) to the element.

Example

The following example should get the ipl\Validator\BetweenValidator:

$this->addElement(
    'number',
    'example',
    [
        'label' => 'Example',
        'min' => 1,
        'max' => 5
    ]
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions