Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

golles/yii2-cookie-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Yii2 Cookie Message

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'],
    ]);
?>