PHP code example of mice-tm / yii2-timeline-widget
1. Go to this page and download the library: Download mice-tm/yii2-timeline-widget 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/ */
mice-tm / yii2-timeline-widget example snippets
class LogModel extends Model
{
public $action;
public $title,
public $body;
public $log_date;
public $macros;
public $_id;
public function rules()
{
return [
[['action', 'title'], ' 'title',
'body',
'macros',
'log_date',
];
}
public function attributeLabels()
{
return [
'_id' => '#',
'action' => 'Action',
'macros' => 'Macros',
'title' => 'Title',
'body' => 'Body',
'log_date' => 'Date',
];
}
}