Mostly useful to those who have recurring intermissions in their horde development.
Horde::img('image.png', 'Alt Text');
// The Image will be searched in the themes folders, precedence: current app, selected theme - current app, default theme - horde, current theme - horde, default theme
$GLOBALS['registry']->get('icon', $app);
$GLOBALS['registry']->get('webroot', $app);
$GLOBALS['registry']->applications[$app]['jsuri'];
Note: This is most likely not what you want. Use the template & js loading mechanism instead
$page_output->addScriptFile('jquery-ui/jquery-1.9.0.min.js', $app);
$page_output->addInlineJsVars($data);
This is useful for dynamic initialisation of Single Page Applications. Solves chicken - egg: Provide dynamic data the js needs to know but cannot (yet) get via ajax. Think of tokens or API Urls.
Date.CultureInfo - various locale settings from the backend.
Back to the Project List