PHP code example of andrewdanilov / yii2-cookies-agreement
1. Go to this page and download the library: Download andrewdanilov/yii2-cookies-agreement library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
andrewdanilov / yii2-cookies-agreement example snippets
echo CookiesAgreement::widget([
'message' => 'By continuing to use our site, you consent to the processing of cookies and other user data, in accordance with this notice on their use. If you do not agree to these terms, please disable cookies. Learn more about <a href="{url}">privacy policy</a>.', // optional
'url' => 'https://example.com/agreement', // optional, use if {url} tag presents in message property
]);
/**
* Translation map for en-US
*/
return [
'By continuing to use our site, you consent to the processing of cookies and other user data, in accordance with this notice on their use. If you do not agree to these terms, please disable cookies. Learn more about <a href="{url}">privacy policy</a>.'
=> 'Продолжая использовать наш сайт, вы даете согласие на обработку файлов Cookies и других пользовательских данных, в соответствии с настоящим уведомлением об их использовании. Если вы не согласны с этими условиями, пожалуйста, отключите файлы cookies. Подробнее о <a href="{url}">политике конфиденциальности</a>.',
];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.