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

Jan Schneider jan at horde.org
Tue Aug 30 19:24:31 UTC 2011


jan  Tue, 30 Aug 2011 19:24:30 +0000

Modified page: http://wiki.horde.org/Doc/Dev/ConversionH4
New Revision:  1.25
Change log:  Header templates, Menus

@@ -89,8 +89,16 @@

  ++ Globals

  Remove all use of globals within the application (use injector instead).
+
+++ Header templates
+
+Most applications should no longer need a custom header template.  
Instead use:
+
+<code type="php">
+require $registry->get('templates', 'horde') . '/common-header.inc';
+</code>

  ++ Images/Graphics

  OLD:
@@ -147,8 +155,17 @@

  ++ Mail library

  PEAR's Mail library has been replaced by Horde_Mail.
+
+++ Menu
+
+The menu should be provided now by Appname_Application::menu().  
{{templates/menu.inc}} can be removed, unless there are any custom  
elements. To render the menu use:
+
+<code type="php">
+echo Horde::menu();
+$notification->notify(array('listeners' => 'status'));
+</code>

  ++ MIME library

  The MIME library has been rewritten - most calls to the library will  
probably need to be changed.



More information about the commits mailing list