PHP code example of andrewdanilov / yii2-site-years
1. Go to this page and download the library: Download andrewdanilov/yii2-site-years 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-site-years example snippets
echo \andrewdanilov\SiteYears\SiteYears::widget([
'startYear' => 2018, // optional, default is current year
'delimiter' => ' - ', // optional, default is '-'
]);
echo \andrewdanilov\SiteYears\SiteYears::widget([
'startYear' => 2019,
]);