1. Kayako Download customers: we will continue to develop and support Kayako Download beyond July 2017, alongside the new Kayako for existing customers.

    Find out more.

  2. The forum you are viewing relates to Kayako Classic. If you signed up or upgraded to the new Kayako (after the 4th July 2016), the information in this thread may not apply to you. You can visit the forums for the new Kayako here.

Get current app name

Discussion in 'Apps and modifications' started by Melwin, Dec 9, 2016.

  1. Melwin

    Melwin New Member

    Hello guys,

    I'm looking for a way to retrieve the app name of the current file.
    I don't want to hardcode the name into my controller's logic.

    So I was thinking about getting the root folder name of the app using
    $appName explode('/'dirname(__DIR__));
    $appName end($appName);
    But I was also wondering if somebody has a better idea ?
    Last edited: Dec 9, 2016

Share This Page