6.0.0-git
2019-11-18

Diff for Doc/Dev/CheatSheet between 4 and 5

[[toc]]

+ 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[$app]['jsuri'];$GLOBALS['registry']->applications[$app]['jsuri'];

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



----
Back to the ((Project|Project List))