21298 Posts in 5735 Topics by 2603 members
General Questions
SilverStripe Forums » General Questions » How to disable all error meaggess and disable debug parameter url?
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 870 Views |
-
How to disable all error meaggess and disable debug parameter url?

10 December 2009 at 6:55pm
I have upload final web app to public domain (http://www.mydomain.com) . How to disable Dev parameter url (debug,showqueries,flush=all). I want to user admin only can use it on public URL.
My configuration file _config.php
Director::set_dev_servers(array(
'localhost',
'127.0.0.1',
));ฺBut all people can use parameter "debug=1&showqueries=1".
Please help me.
Thanks. -
Re: How to disable all error meaggess and disable debug parameter url?

10 December 2009 at 11:29pm
Add this to your live_config
Director::set_environment_type("live");
-
Re: How to disable all error meaggess and disable debug parameter url?

11 December 2009 at 5:56pm
Thank you very much.
| 870 Views | ||
|
Page:
1
|
Go to Top |


