Solar_Form::setValue()

public void Solar_Form::setValue ( string $name , mixed $value , string $array = NULL )

Manually set the value of one element.

Parameters

  • (string) $name: The element name.

  • (mixed) $value: Set the element to this value.

  • (string) $array: Rename the element as a key in this array.

Returns

  • (void)

Description

Manually set the value of one element.

Note that this is subtly different from populate(). This method takes full name of the element, whereas populate() takes a "natural" hierarchical array like $_POST.



Local