[cvs] [Wiki] changed: Doc/Dev/ConversionH4

Ben Klang ben at alkaloid.net
Wed Jun 2 20:35:19 UTC 2010


bklang  Wed, 02 Jun 2010 16:35:19 -0400

Modified page: http://wiki.horde.org/Doc/Dev/ConversionH4
New Revision:  1.5
Change log:  Image handling

@@ -53,8 +53,28 @@

  ++ Globals

  Remove all use of globals within the application (use injector instead).
+
+++ Images/Graphics
+
+OLD:
+<code>
+$registry->getImageDir() . '/image.png';
+</code>
+
+NEW:
+<code>
+Horde_Themes::img('image.png');
+</code>
+Note that if you want to prevent using images from Horde itself and  
always use the current application, use the following:
+
+<code>
+Horde_Themes::img('image.png'), array('nohorde' => true));
+</code>
+
+Also note this policy change from H3:
+"Do note that doing something like grabbing an image dir and then  
manually appending various image names to it is NOT supported in H4."

  ++ Injector Usage

  Various Horde libraries now must be loaded via the injector.



More information about the cvs mailing list