forked from halfdan/piwik-barometer-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathController.php
More file actions
33 lines (30 loc) · 678 Bytes
/
Controller.php
File metadata and controls
33 lines (30 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* Piwik - Open source web analytics
*
* @link http://github.com/halfdan/piwik-barometer-plugin
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @category Piwik_Plugins
* @package Piwik_Barometer
*/
namespace Piwik\Plugins\Barometer;
class Controller extends \Piwik\Plugin\Controller
{
/**
*
*/
public function getVisitorGauge()
{
$view = new \Piwik\View('@Barometer/visitor_gauge_widget');
echo $view->render();
}
/**
*
*/
public function getVisitTimeGauge()
{
$view = new \Piwik\View('@Barometer/visit_time_gauge_widget');
echo $view->render();
}
}