Updated CodeCorner1 (markdown)

leithoff
2016-05-31 15:42:36 +02:00
parent a6da0ca13a
commit 98c9c1b570

@ -35,24 +35,31 @@ But you need the (required) file ```setup.inc.php``` in folder ```$app/setup```.
*** ***
```php ```php
<?php <?php
$setup_info['test']['name'] = 'test'; $setup_info['test']['name'] = 'test';
$setup_info['test']['title'] = 'Test'; $setup_info['test']['title'] = 'Test';
$setup_info['test']['version'] = '0.9.001'; //anything you like, as long as it is fitting the schema of a version number $setup_info['test']['version'] = '16.1'; //anything you like, as long as it is fitting the schema of a version number 0.9.001 may work as well
$setup_info['test']['app_order'] = 100; // at the end $setup_info['test']['app_order'] = 100; // at the end. most likely
// $setup_info['test']['tables'] = array('egw_test'); // if there are any $setup_info['test']['enable'] = 1;
$setup_info['test']['enable'] = 1; $setup_info['test']['index'] = 'test.test_ui.index&ajax=true';
$setup_info['test']['autoinstall'] = true; // install automatically on update
/* Dependencies for this app to work */ // here comes some author info. you may or may not provide it.
// if you define dependencies, you MUST meet them to get that baby on the road // But IF, you should use your OWN Info
$setup_info['test']['depends'][] = array( $setup_info['test']['author'] = 'Stylite AG';
'appname' => 'phpgwapi', $setup_info['test']['license'] = 'GPL';
'versions' => Array('1.8','1.9'), $setup_info['test']['description'] = 'Test application in EGroupware';
); $setup_info['test']['maintainer'] = 'Stylite AG';
$setup_info['test']['depends'][] = array( // this is only necessary as long the etemplate-class is not in the api $setup_info['test']['maintainer_email'] = 'info@stylite.de';
'appname' => 'etemplate',
'versions' => Array('1.6','1.8','1.9'),
);
// if there are any tables, that belong to the application, list them here
//$setup_info['test']['tables'] = array('egw_test');
/* Dependencies for this app to work */
// we intend to build up from the newest api
$setup_info['mail']['depends'][] = array(
'appname' => 'api',
'versions' => Array('16.1')
);
``` ```
*** ***
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.