6.0.0-git
2019-11-19
Last Modified 2019-11-03 by Guest

A short-hand reference of common Horde idioms to get things done.

Mostly useful to those who have recurring intermissions in their horde development.

Classic UI: Reference an image from Theme

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

Locations

App Icon Url

$GLOBALS['registry']->get('icon', $app);

App Web Root Url

$GLOBALS['registry']->get('webroot', $app);

App's Javascript Url

$registry->applications['timetool']['jsuri'];

Note: This is most likely not what you want. Use the template & js loading mechanism instead


Back to the Project List