golles / yii2-cookie-message
此包已被废弃且不再维护。未建议任何替代包。
此包的最新版本(1.0.0)没有提供许可证信息。
此小部件将显示由于欧洲法律而必需的cookie警告。
1.0.0
2015-10-02 22:39 UTC
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
此小部件将显示由于欧洲法律而必需的cookie警告。基于以下想法:https://github.com/bizley-code/yii2-cookiemonster
安装
安装此扩展的首选方式是通过 composer。
运行以下命令之一:
php composer.phar require --prefer-dist golles/yii2-cookie-message "*"
或者将以下内容添加到您的 composer.json
文件的require部分。
"golles/yii2-cookie-message": "*"
to the require section of your composer.json file.
用法
扩展安装完成后,只需在代码中使用即可。
<?php echo \golles\cookiemessage\CookieMessage::widget([ 'moreInfoLink' => ['/page/cookies'], ]); ?>