You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Is There a Way to Determine Site Type From CPHP?

Accepted answer
4
Views
3
Comments
edited Jan 7, 2016 8:12PM in UI Extensibility 3 comments

Content

I have a problem where I'd like to be able to determine the "type" of a site (test, upgrade, production) from within CPHP. It would be great if there's a non-hidden config that would tell me this, but if I could get the base URL of the site that would work as well. I think I've done this before, but that may have been back when I could access hidden configs and etc. Is there a publicly-accessible way to do this?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!