Replace:
Code: Select all
$config['debug'] = false;
Code: Select all
if ($_GET['debug']) {
$config['debug'] = true;
} else {
$config['debug'] = false;
}
You might not want to leave it this way, since it might give hackers extra information about your site if they stumble upon the debug option, but you can put it in whenever you need debug information, but don't want the site's users to see it.