diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-11-18 07:02:19 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-11-18 07:02:19 +0400 |
commit | 9060f0180cb935efd1925942d3a8ce1cf309459a (patch) | |
tree | b474d8758f3b45063e4bd430f5daa028b369c879 /plugins/Widgetize/Controller.php | |
parent | 4658d92891093982d979e7ec8343ee4ccc510a38 (diff) |
getting rid of the fetch parameter
Diffstat (limited to 'plugins/Widgetize/Controller.php')
-rw-r--r-- | plugins/Widgetize/Controller.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Widgetize/Controller.php b/plugins/Widgetize/Controller.php index 885a5b7983..bf0a9ac1bc 100644 --- a/plugins/Widgetize/Controller.php +++ b/plugins/Widgetize/Controller.php @@ -27,7 +27,7 @@ class Controller extends \Piwik\Plugin\Controller $view = new View('@Widgetize/index'); $view->availableWidgets = Common::json_encode(WidgetsList::get()); $this->setGeneralVariablesView($view); - echo $view->render(); + return $view->render(); } public function testJsInclude1() @@ -35,7 +35,7 @@ class Controller extends \Piwik\Plugin\Controller $view = new View('@Widgetize/testJsInclude1'); $view->url1 = '?module=Widgetize&action=js&moduleToWidgetize=UserSettings&actionToWidgetize=getBrowser&idSite=1&period=day&date=yesterday'; $view->url2 = '?module=Widgetize&action=js&moduleToWidgetize=API&actionToWidgetize=index&method=ExamplePlugin.getGoldenRatio&format=original'; - echo $view->render(); + return $view->render(); } public function testJsInclude2() @@ -44,7 +44,7 @@ class Controller extends \Piwik\Plugin\Controller $view->url1 = '?module=Widgetize&action=js&moduleToWidgetize=UserSettings&actionToWidgetize=getBrowser&idSite=1&period=day&date=yesterday'; $view->url2 = '?module=Widgetize&action=js&moduleToWidgetize=UserCountry&actionToWidgetize=getCountry&idSite=1&period=day&date=yesterday&viewDataTable=cloud&show_footer=0'; $view->url3 = '?module=Widgetize&action=js&moduleToWidgetize=Referrers&actionToWidgetize=getKeywords&idSite=1&period=day&date=yesterday&viewDataTable=table&show_footer=0'; - echo $view->render(); + return $view->render(); } public function iframe() @@ -63,6 +63,6 @@ class Controller extends \Piwik\Plugin\Controller $this->setGeneralVariablesView($view); $view->setXFrameOptions('allow'); $view->content = $outputDataTable; - echo $view->render(); + return $view->render(); } } |