How to get the current project name

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
EBAH
Posts: 5
Joined: 25 Mar 2011, 15:56

How to get the current project name

Post by EBAH »

Hi,
I was wondering how is it possible to get project name instead of the project id.
From helper_api.php the helper_get_current_project() function returns project ID (the same in the mantis_project_table).
Is there a function similar to helper_get_current_project() or should I just query the db to get prj name?
What's best practice?

Thanks,
Evan
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How to get the current project name

Post by atrol »

You can use project_get_name ( $project_id )
Please use Search before posting and read the Manual
EBAH
Posts: 5
Joined: 25 Mar 2011, 15:56

Re: How to get the current project name

Post by EBAH »

Thank you atrol!!!
Post Reply