[commits] [Wiki] changed: Doc/Dev/HordeAjaxApplications/Example

Ralf Lang (B1 Systems GmbH) lang at b1-systems.de
Wed Dec 16 11:44:37 UTC 2015


rlang  Wed, 16 Dec 2015 11:44:37 +0000

Modified page: http://wiki.horde.org/Doc/Dev/HordeAjaxApplications/Example
New Revision:  4
Change log:  <code> goes on its own line

@@ -8,15 +8,17 @@


  Let's generate a fresh application called boneyard

-<code>maintaina:/srv/git/horde5-webmail/horde # php  
framework/bin/horde-generate-module boneyard "Ralf Lang  
<lang at b1-systems.de>"
+<code>
+maintaina:/srv/git/horde5-webmail/horde # php  
framework/bin/horde-generate-module boneyard "Ralf Lang  
<lang at b1-systems.de>"
  Started new Module in /srv/git/horde5-webmail/horde/boneyard!

  Register the new Module with a file in the config/registry.d directory:

  <?php
-$this->applications['boneyard'] = array('name' => _("Boneyard"));</code>
+$this->applications['boneyard'] = array('name' => _("Boneyard"));
+</code>


  We put a file with this oneliner into the directory as advised

@@ -24,9 +26,10 @@


  Now let's re-run the script generating the links for the git  
checkout installation

-<code>maintaina:/srv/git/horde5-webmail/horde # php framework/bin/install_dev
+<code>
+maintaina:/srv/git/horde5-webmail/horde # php framework/bin/install_dev
  EMPTYING old web directory /srv/www/vhosts.d/horde.ralf-lang.de

  LINKING horde
  Setting static directory permissions...
@@ -56,30 +59,36 @@

  [ INFO ] Package(s) to install: ALL (129 packages)
  [ INFO ] Installing package ActiveSync
  [.. snip ..]
-[ INFO ] Installing package xxhash</code>
+[ INFO ] Installing package xxhash
+
+</code>

  Now boneyard is set up in your web-accessible dir.
  Let's make the config dir web-writeable

-<code>chown wwwrun:www  
/srv/www/vhosts.d/horde.ralf-lang.de/boneyard/config</code>
+<code>
+chown wwwrun:www /srv/www/vhosts.d/horde.ralf-lang.de/boneyard/config
+</code>

  This is for SUSE - debian or redhat may have different user/group  
for the web server.

  Next go to $yourdomain/admin/config/ the admin panel and generate  
the conf.php file by clicking on the "boneyard" entry and then the  
"create boneyard config" button.
  At this point, we do not care about the actual contents of this  
config - the defaults are just fine.

  If you only see "horde" and some library names, you most probably  
have not edited registry.local.php to contain something like:

-<code><?php
+<code>
+<?php
  // By default, applications are assumed to live within the base Horde
  // directory (e.g. their fileroot/webroot will be automatically determined
  // by appending the application name to Horde's 'fileroot'/'webroot' setting.
  // If your applications live in a different base directory, defining these
  // variables will change the default directory without the need to change
  // every application's 'fileroot'/'webroot' settings.
-$app_fileroot = '/srv/www/vhosts.d/horde.ralf-lang.de/';</code>
+$app_fileroot = '/srv/www/vhosts.d/horde.ralf-lang.de/';
+</code>

  Now "Boneyard" should appear in your horde topbar with some bogus  
buttons and content

  Let's create the structure of a "dynamic" application



More information about the commits mailing list