[commits] [Wiki] changed: Doc/Dev/CheatSheet
Wiki Guest
wikiguest at horde.org
Sun Nov 3 07:44:57 UTC 2019
guest [95.90.223.65] Sun, 03 Nov 2019 07:44:57 +0000
Modified page: https://wiki.horde.org/Doc/Dev/CheatSheet
New Revision: 3
Change log: Add various registry shortcuts
@@ -7,8 +7,24 @@
++ 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
----
More information about the commits
mailing list