Skip to content

New method: withPrefix #13

Closed
Closed
@g105b

Description

@g105b

Receives all input parameters that start with the given prefix.

$input->do("save")
	->withPrefix("io_")
	->call("processIo");

function processIo(InputData $data) {
	// $data["product_id"] // from input name=io_product_id
}
<form method="post">
	<input name="io_product_id" />
	<button name="do" value="save">Save</button>
</form>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions