mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
63 lines
2.3 KiB
HTML
63 lines
2.3 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
|
|
<TITLE> phpGroupWare Application Development: Installing your application</TITLE>
|
|
<LINK HREF="phpGW_Developers-HOWTO-4.html" REL=next>
|
|
<LINK HREF="phpGW_Developers-HOWTO-2.html" REL=previous>
|
|
<LINK HREF="phpGW_Developers-HOWTO.html#toc3" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="phpGW_Developers-HOWTO-4.html">Next</A>
|
|
<A HREF="phpGW_Developers-HOWTO-2.html">Previous</A>
|
|
<A HREF="phpGW_Developers-HOWTO.html#toc3">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s3">3. Installing your application</A></H2>
|
|
|
|
<H2><A NAME="ss3.1">3.1 Overview</A>
|
|
</H2>
|
|
|
|
<P>It is fairly simple to add and delete applications to/from phpGroupWare.
|
|
<H2><A NAME="ss3.2">3.2 Automatic features</A>
|
|
</H2>
|
|
|
|
<P>To make things easy for developers we go ahead and load the following files.
|
|
<UL>
|
|
<LI> inc/appname/appname.inc.php - This file should include all your application specific functions.</LI>
|
|
<LI> inc/appname/header.inc.php - This file is loaded just after the system header/navbar, and allows developers to use it for whatever they need to load.</LI>
|
|
<LI> inc/appname/footer.inc.php - This file is loaded just before the system footer, allowing developers to close connections and whetever else they need.</LI>
|
|
</UL>
|
|
<H2><A NAME="ss3.3">3.3 Adding files, directories and icons.</A>
|
|
</H2>
|
|
|
|
<P>You will need to create the following directories for your code <BR>
|
|
(replace 'newapp' with your application name)<BR>
|
|
<PRE>
|
|
`-- newapp
|
|
`-- icons
|
|
| `-- navbar.gif
|
|
`-- inc
|
|
| |-- header.inc.php
|
|
| `-- footer.inc.php
|
|
|-- lang
|
|
| `-- en
|
|
| `-- newapp.inc.php
|
|
`-- template
|
|
`-- default
|
|
|
|
</PRE>
|
|
<H2><A NAME="ss3.4">3.4 Making phpGroupWare aware of your application</A>
|
|
</H2>
|
|
|
|
<P>To make the application aware of your application, add your application setup in the inc/globalconfig.inc.php.<BR>
|
|
Simply add the following line just after <CODE>'/* ADD NEW APPS HERE */'</CODE> (replace 'newapp' with your application name)
|
|
<PRE>
|
|
$phpgw_info["apps"]["newapp"] = array ("title" => "Title of Application", "enabled" => True);
|
|
</PRE>
|
|
<HR>
|
|
<A HREF="phpGW_Developers-HOWTO-4.html">Next</A>
|
|
<A HREF="phpGW_Developers-HOWTO-2.html">Previous</A>
|
|
<A HREF="phpGW_Developers-HOWTO.html#toc3">Contents</A>
|
|
</BODY>
|
|
</HTML>
|