Skip to content

Cookie library for Yii2 framework - very easy and powerfull

License

Notifications You must be signed in to change notification settings

Yiiman-cms/yii-lib-cookie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii-lib-cookie

Cookie library for Yii2 framework - very easy and powerfull

Set Component

In Yii Advanced go to path: common\config\main.php And in Yii Basic go to path: config\main.php

Add component to component array:

[
    'components'=>
    [
        'cookie'=>YiiMan\YiiLibCookie\lib\cookie::class
    ]
]

Now you can call component like this:

Yii::$app->cookie

Set value to cookie

Just do :

Yii::$app->cookie->newKey='new value';

Get saved value

Just do :

$value=Yii::$app->cookie->newKey

About

Cookie library for Yii2 framework - very easy and powerfull

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages