web\HeaderCollection setDefault()

setDefault() public method

Sets a new header only if it does not exist yet.

If there is already a header with the same name, the new one will be ignored.

public $this setDefault ( $name, $value )
$name string

The name of the header

$value string

The value of the header

return $this

The collection object itself

doc_Yii
2016-10-30 17:15:10
Comments
Leave a Comment

Please login to continue.