dev-master
9999999-devTimeline/Telemetry Widget for Yii2
MIT
The Requires
extension yii2 widget timeline telemetry
Timeline/Telemetry Widget for Yii2
Timeline/Telemetry Widget for Yii2, (*2)
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
php composer.phar require --prefer-dist vivekmarakana/yii2-timeline-widget "*"
or add, (*5)
"vivekmarakana/yii2-timeline-widget": "*"
to the require section of your composer.json
file., (*6)
Once the extension is installed, simply use it in your code by :, (*7)
title; $data['date'] = \Yii::$app->formatter->asDate(date("Y-m-d H:i:s", strtotime('+330 minutes', strtotime($post->published_at))), 'php:d M,Y'); $data['time'] = \Yii::$app->formatter->asDate(date("Y-m-d H:i:s", strtotime('+330 minutes', strtotime($post->published_at))), 'php:h:i A'); $data['notes'] = $post->summary; if(!is_null($post->postedBy)) { $data['subtitle'] = "By {$post->postedBy->name} - {$post->postedBy->bio}"; } $items[] = $data; } \vivekmarakana\widgets\Timeline::widget(['items' => $items]); ?>
Timeline/Telemetry Widget for Yii2
MIT
extension yii2 widget timeline telemetry