Thanks a lot for all this informations !
Actually, I placed the code in /egroupware/my_app/index.php
.
I have installed the app at the address http://localhost/egroupware/setup/ and I can access to them in the menu of Egroupware.
The apps is a very simple module for find et filter some informations of an other BDD.
So inside I have some forms and select, etc…
But, I need also to search some informations by URL, so for try to found how use get variable, I tried to create a new app with the name “variable_get
”.
In index.php
I use only this little code :
<?php
$GLOBALS['egw_info'] = array('flags' => array(
'currentapp' => 'variable_get',
'noheader' => false,
'nonavbar' => false,
));
include('../header.inc.php');
if (isset($_GET['hello'])) {
echo '<h1 style="background-color:#00FF00">HELLO !! =D</h1>';
} else {
echo '<h1 style="background-color:#FF0000">NO HELLO :(</h1>';
}
echo "Hello world! <br />";
common::egw_footer();
I followed a part oh the documentation that I found here :
https://github.com/EGroupware/egroupware/wiki/CodeCorner1
But, "No Hello :(
’ always, and I had also this error :
An error happened
Class 'common' not found
I think, I should use the “yourapp_ui file” that you tell in your first reply. I will try to do !
Thanks again !