golles / yii2-cookie-message
This widget will show a cookie warning that is required due to an European law
Installs: 219
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
pkg:composer/golles/yii2-cookie-message
Requires
- php: >=5.2.0
- yiisoft/yii2: @stable
- yiisoft/yii2-bootstrap: @stable
This package is not auto-updated.
Last update: 2021-09-04 01:10:38 UTC
README
This widget will show a cookie warning that is required due to an European law. Based on this idea: https://github.com/bizley-code/yii2-cookiemonster
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist golles/yii2-cookie-message "*"
or add
"golles/yii2-cookie-message": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?php echo \golles\cookiemessage\CookieMessage::widget([ 'moreInfoLink' => ['/page/cookies'], ]); ?>