Previous Page
setStatus()

Solar_Form
setValue()

Next Page
setValues()

setValue()

public void setValue ( string $name, mixes $value, string $array default NULL )

Manually set the value of one element.

Parameters

  • (string) $name: The element name.
  • (mixes) $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.