Don't call the Ansel_View#html method until after headers have been sent.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 15 Feb 2010 17:41:49 +0000 (12:41 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 15 Feb 2010 17:44:05 +0000 (12:44 -0500)
Any script files needed by the views should be included in the View's const'r so
they can be output in the header.

ansel/view.php

index e08cee9..1740fbb 100644 (file)
@@ -45,8 +45,8 @@ try {
 }
 
 $title = $view->getTitle();
-$view_html = $view->html();
 require ANSEL_TEMPLATES . '/common-header.inc';
+$view_html = $view->html();
 require ANSEL_TEMPLATES . '/menu.inc';
 echo $view_html;
 require $registry->get('templates', 'horde') . '/common-footer.inc';