diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-07-03 16:55:01 +0400 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-07-03 16:55:01 +0400 |
commit | 8fa18618d7da7af4aad0fdde99c1b738c584cddb (patch) | |
tree | 73aebd4c9c71e5150bee9391638db5c5b31093b7 /plugins/ExampleUI | |
parent | 9bcbcc3df033df056c429ed06ef535000993385f (diff) |
Fix "can't modify headers" error with evolutionGraph, tagCloud, and misc
Diffstat (limited to 'plugins/ExampleUI')
-rw-r--r-- | plugins/ExampleUI/Controller.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/ExampleUI/Controller.php b/plugins/ExampleUI/Controller.php index 3419bd2498..e62927be17 100644 --- a/plugins/ExampleUI/Controller.php +++ b/plugins/ExampleUI/Controller.php @@ -31,6 +31,7 @@ class Piwik_ExampleUI_Controller extends Piwik_Controller function evolutionGraph() { + ob_start(); echo "<h2>Evolution of server temperatures over the last few days</h2>"; $this->echoEvolutionGraph(); } @@ -69,6 +70,7 @@ class Piwik_ExampleUI_Controller extends Piwik_Controller function tagClouds() { + ob_start(); echo "<h2>Simple tag cloud</h2>"; $this->echoSimpleTagClouds(); @@ -122,6 +124,7 @@ class Piwik_ExampleUI_Controller extends Piwik_Controller function misc() { + ob_start(); echo "<h2>Evolution graph filtered to Google and Yahoo!</h2>"; $this->echoDataTableSearchEnginesFiltered(); } @@ -133,4 +136,4 @@ class Piwik_ExampleUI_Controller extends Piwik_Controller $view->setSearchPattern('^(Google|Yahoo!)$', 'label'); return $this->renderView($view); } -}
\ No newline at end of file +} |