Announcement

Collapse
No announcement yet.

Tip: getting the path of the project at runtime

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tip: getting the path of the project at runtime

    Hi,

    Fiddling around with the generated code I found the following to get the path of the project at runtime.

    Code:
    $projectpath = $this->Ini->root . $this->Ini->path_link
    If you want to know the name of the application running use
    Code:
    $this->Ini->nm_cod_apl;
    and the name of the project itself should you wish
    Code:
    $this->Ini->nm_grupo;
    A lot of stuff can be found in the generated index.php file of the application.

    Cheers,
    Sparrow

  • #2
    This can be of help too:

    $app = new logonform_ini();
    $app->init();
    echo 'Projectversion: '.$app->nm_app_version;
    echo 'Project name:'.$app->nm_grupo;
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment

    Working...
    X