Announcement

Collapse
No announcement yet.

Get the name of an app

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

  • Get the name of an app

    Hallo

    I will fill a global variable with the name of the actual form or grid.

    [glob_var]=myapp.php

    is it possible?

    Kai

  • #2
    i don't remember if SC stores the name of the app in a global variable itself but you can always use somehting like

    echo getcwd();

    that will get you the current working directory, that is your app name.

    Regards

    Comment


    • #3
      Originally posted by kai@schaefers-net.de View Post
      Hallo

      I will fill a global variable with the name of the actual form or grid.

      [glob_var]=myapp.php

      is it possible?

      Kai
      What yiu want to do? And what do you need? Application name? Folder?
      /Giuseppe

      Professional Scriptcase Services
      Some Customers opinions

      Comment


      • #4
        in onScriptinit put

        [glob_var] = basename($_SERVER['PHP_SELF']);

        Comment


        • #5
          I use this to get the running appname :

          basename(pathinfo($_SERVER['PHP_SELF'], PATHINFO_DIRNAME))

          Comment

          Working...
          X