PHP code example of davidhirtz / yii2-datetime-behavior
1. Go to this page and download the library: Download davidhirtz/yii2-datetime-behavior 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/ */
davidhirtz / yii2-datetime-behavior example snippets
use davidhirtz\yii\datetime\DateTimeBehavior;
public function behaviors()
{
return [
[
'class'=>DateTimeBehavior::class,
//'attributes'=>['custom_attribute', 'another_attribute'],
],
];
}
php composer.phar