web\CookieCollection add()

add() public method

Adds a cookie to the collection.

If there is already a cookie with the same name in the collection, it will be removed first.

public void add ( $cookie )
$cookie yii\web\Cookie

The cookie to be added

throws yii\base\InvalidCallException

if the cookie collection is read only

doc_Yii
2016-10-30 17:14:49
Comments
Leave a Comment

Please login to continue.