Debugging your pages and want to see the list of database queries executed on all of your qcodo outputted pages? Follow these steps
1. Enable DB profiling by either:
A. Checking your configuration.inc.php script and making sure to set the profiling flag in your database connection to true, or
B. Edit '/includes/header.inc.php' and add...
// start profiling/logging the database queries
// replace '1' in the following line with the database connection you are using
QApplication::$Database[1]->EnableProfiling();
...at the top of the script
2. Edit '/includes/footer.inc.php' and add...
// print link to view database queries
// again, replace '1' with whatever database connection you are using
QApplication::$Database[1]->OutputProfiling();
...at the end of your script (after all database calls have been made)
When you refresh your application you should see a line at the bottom of the pages, similar to the following:
PROFILING INFORMATION FOR DATABASE CONNECTION #1: 32 queries performed. Please click here to view profiling detail
The script that outputs the profile information is '/assets/php/_core/profile.php'.
cheers - wpg