6.0.0-alpha14
6/24/25
Last Modified 6/24/13 by Michael Slusarz

PageOutput Object

$page_output is a global variable defined by the Horde_Framework. It is used to format the output of dynamically generated pages.

Page Header

<?php

$page_output->header(array(
    'title' => _("List")
));
?>

Page Footer

<?php

$page_output->footer();
?>

Adding Javascript

Javscript that lives in an application's js/ directory

<?php

// $page_output->addScriptFile($name_of_file_relative_to_base_of_js_directory, $app_name);
// Example, for Horde:
$page_output->addScriptFile('login.js', 'horde');
?>

External Javascript

<?php

// The file MUST be web accessible.
$page_output->addScriptFile(
    new Horde_Script_File_External($relative_URI_to_JS_file) 
);
?>