Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

How to disable all error meaggess and disable debug parameter url?


Reply


3 Posts   1076 Views

Avatar
Suriya

Community Member, 5 Posts

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.

Avatar
Fuzz10

Community Member, 787 Posts

10 December 2009 at 11:29pm

Add this to your live_config

Director::set_environment_type("live");   

Avatar
Suriya

Community Member, 5 Posts

11 December 2009 at 5:56pm

Thank you very much.