App Name

anybody knows if there is a variable (or some other way) to read the name of currently running App ?

You can analyze $_SERVER[‘PHP_SELF’]

There is this variable:


echo $this->Ini->nm_cod_apl;

Hi Mamede,

Which other variables is contained on this variable? I’m trying to get theme to apply to all applications.

Regards,

AYMG

You can get a list of all variables and their values using this piece of code in your application (they may be different for each application type):


echo "<pre>";
print_r($this->Ini);
die();

Are you looking for any specific variable?

OK, so you say that if I placed your line

  {AppName}= $this->Ini->nm_cod_apl;

and have the {} var on the screen it should show currently running/opened App ?

Exactly.
It’ll give you the same name you filled in when you created the application.

Ok, let me explain something here:

the idea is to conditionally display AppName (for example ) in the footer. I have had this feature implemented in Windows desktop Project and it works very well.

Here is how it works:

  1. User runs program in debug mode: MyProgrem.exe /debug
  2. based on /debug program displays the App name OR number in the window corner
  3. This makes very easy to refer to the screens and apps. If there is a bug or any issue all I need to do is to ask user for the SCREEN NUMBER
  4. It also helps to create manuals and refer to SCREENs

The main challenge here is to generate all this automatically so no DEV extra coding is required. I would rather see the App Number instead of the name but this can be coded into simple library I guess and added globally to the project

Arthur