Collapse Submit a Service Request Contact Information for Technical SupportMy Service Notifications
Get the site name in Customer Portal customizations
Answer ID 12087 | Last Review Date 02/14/2022
How do I identify the current site in a PHP customization?
- Customer Portal 3.x
- PHP customizations (custom model, controller, etc.)
Developer wants to retrieve the name of the site programmatically so that different logic can be used between the production, test, and upgrade environments.
The name of the site is in the configuration setting DB_NAME. In Customer Portal you can retrieve it with:
This does not apply to custom scripts or custom processes.