2017 © Pedro PelĂĄez
 

library cookie-policy

image

dtome/cookie-policy

  • Monday, September 14, 2015
  • by danitome24
  • Repository
  • 2 Watchers
  • 3 Stars
  • 3,163 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 1 Versions
  • 7 % Grown

The README.md

Daniel Tomé Fernåndez danieltomefer@gmail.com, (*1)

Introduction:

This plugin provide us a top/bottom bar with cookie policy and a button to accept it., (*2)

Image:

promisechains, (*3)

Instalation:

To install this module you must follow this steps:, (*4)

1- In your composer.json you must write:, (*5)

"require": {
        "dtome/cookie-policy": "dev-master",
    },

and, (*6)

"autoload": {
      "psr-4":{
        "cookiepolicy\\" : "vendor/dtome/cookie-policy"
      }
    }

2- Then you must run the following command line composer update, (*7)

Configuration:

1-Enable the module on your application.config.php., (*8)

'modules' => array(
        'cookiepolicy',
    ),

2- In your view/layout.phtml paste this code under javascript files call (inside of head tag)., (*9)



3- You must copy the data files to public folder:, (*10)

data/cookieJs.js to public/js
data/cookieStyle.css to public/css

4- In your layout.phtml define the javascript file and css file like the following:, (*11)

->prependStylesheet($this->basePath('css/cookieStyle.css'))

->prependFile($this->basePath('js/cookieJs.js'))

Usage:

On your layout.phtml you must add :, (*12)

<?php echo $this->cookiePolicy(); ?>

The Versions

14/09 2015

dev-master

9999999-dev

  Sources   Download

GPL v3

by Daniel Tome