[Wiki] changed: Doc/Dev/ConversionH4

Ben Klang <[email protected]>
Newsgroups gmane.comp.horde.cvs
Message-ID <[email protected]>
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.


-- 
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.