diff --git a/CodeCorner1.md b/CodeCorner1.md index 7970be4..5afa1f2 100644 --- a/CodeCorner1.md +++ b/CodeCorner1.md @@ -1,18 +1,19 @@ > [Wiki](Home) ▸ [Developer Docs](Developer Docs) ▸ [Code Corner](Code Corner) ▸ **day one** ▸ [day two](CodeCorner2) *** -On our first day, we had do do some of the stuff of day zero - the "how to get started" stuff - to be up to date. We went through the setup of the eGroupware Application, which is described ((AdminDocs|elsewhere)). +On our first day, we had do do some of the stuff of day zero - the "how to get started" stuff - to be up to date. +And we went through the setup of the EGroupware Application, which is described elsewhere. As first application we decided to do: Hello World -The motivation for this was to learn the very basics of: what does an eGroupware application need. +The motivation for this was to learn the very basics of: what does an EGroupware application need. -Every application needs an application directory within the egroupware tree. +Every application needs an application directory within the EGroupware tree. Consider [droyws] the document root of your web-server. -Then [droyws]/Egroupware is the root of your eGroupware-application. +Then [droyws]/egroupware is the root of your EGroupware-application. Your own Application, we will baptise it test, for obvious reasons needs a folder "test" just there: -[droyws]/Egroupware/test +[droyws]/egroupware/test -Within test the following structure is needed, for eGroupware to recognize our new application: +Within test the following structure is needed, for EGroupware to recognize our new application: *** ```bash /index.php @@ -28,8 +29,8 @@ Within test the following structure is needed, for eGroupware to re *** Obviously ```inc```, ```setup```, ```templates```, ```templates/default``` and ```templates/default/images``` are folders. -After suplying the structure, you have to register the application with eGroupware. -This is done via the setup area within eGroupware (via the egw/setup/ URL). +After suplying the structure, you have to register the application with EGroupware. +This is done via the setup area within EGroupware (via the egw/setup/ URL). But you need the (required) file ```setup.inc.php``` in folder ```$app/setup```. ```$app/setup/setup.inc.php``` should contain the information to setup your application. *** @@ -62,7 +63,7 @@ But you need the (required) file ```setup.inc.php``` in folder ```$app/setup```. ); ``` *** -Within the setup area you go to manage Applications (Setup Main Menu) check the name of your application (the name of the folder within the eGroupwaretree, where your Application is going to reside) and click install. +Within the setup area you go to manage Applications (Setup Main Menu) check the name of your application (the name of the folder within the EGroupwaretree, where your Application is going to reside) and click install. *** Or you can do it via directly accessing the mySQL database: ```php @@ -72,7 +73,7 @@ Or you can do it via directly accessing the mySQL database: _**Apply sufficient rights, ...**_ After adding the entry there you have to allow yourself or your group the access to the newly registered application. You do that by using the admin/preferences module, choosing Usergroups/Useraccounts , choosing a User or a ::Group and checking the newly registered application. - After logoff/logon you should be able to access the new application via eGroupware. + After logoff/logon you should be able to access the new application via EGroupware. You will get an error - for sure. Since there is no suitable index.php within the new application subtree. _**... and some code to the file index.php and off you go.**_ @@ -81,7 +82,7 @@ The content of test/index.php should include: ```php array( 'nonavbar' => False, )); /* - include THE eGroupware header, that takes care of the sessionhandling + include THE EGroupware header, that takes care of the sessionhandling and the other background stuff the information provided above is used/required here in order to get the application running */ @@ -113,14 +114,14 @@ unset($userinfo['apps']);//the users effective / available apps unset($userinfo['passwd']);//effective password for you. we dont want to show it here _debug_array($userinfo); -//display the eGroupware footer +//display the EGroupware footer common::egw_footer(); ``` *** We provided only the starting ``` [Wiki](Home) ▸ [Developer Docs](Developer Docs) ▸ [Code Corner](Code Corner) ▸ **day one** ▸ [the refining of the first days work](CodeCorner2) \ No newline at end of file