PHP code example of geniv / nette-cookie-bar
1. Go to this page and download the library: Download geniv/nette-cookie-bar 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/ */
geniv / nette-cookie-bar example snippets
protected function createComponentCookieBar(ICookieBar $cookieBar): ICookieBar
{
//$cookieBar->setTemplatePath(__DIR__ . '/templates/cookieBar.latte');
$cookieBar->setCookieName('nette-web-cookie-bar');
//$cookieBar->setCookieExpire('+10 years');
return clone $cookieBar;
}
return clone $cookieBar;
json
"php": ">=7.0",
"nette/nette": ">=2.4",
"geniv/nette-general-form": ">=1.0"