Page 1 of 1

[solved] How to remove the comment at the bottom of output pages

Posted: Mon Apr 12, 2010 4:36 pm
by Jonn
Hi,

I'm trying to receive some JSON from some php code in a UDT with jQuery 1.4. The problem is that the page that has the UDT and outputs the JSON is also very fond of outputting an annoying comment in the end of the page (ex: ).

How do I teach CMSMS to be obedient and not to output something I have no interest in and renders my JSON invalid?

CMSMS version : 1.6.6 "Bonde"
PHP version : 5.2

Notes : I use showtemplate=false in the request url and yes, my php code has been tested on an independent file.

Re: How to remove the comment at the bottom of output pages

Posted: Mon Apr 12, 2010 4:59 pm
by calguy1000
add this line to your config.php

$config['hide_performance_info'] = 1;

Re: How to remove the comment at the bottom of output pages

Posted: Mon Apr 12, 2010 5:15 pm
by Jonn
Awsome that seemed to do the trick. Thank you very much :)