Logging
You can see sql log like as follows.
| SQL | ERROR | ROWS | TIME |
|---|
| SELECT * FROM user WHERE status=1 LIMIT 5 | | 5 | 0.01205 |
First of all, make framework to debug mode.
| Set debug mode. |
function config_controller( &$c )
{
$c->SetDebug( true );
}
|
Log is set to 'cheetan_sql_log'. So, display anywhere as you like.
| Display log |
<?php echo $data['cheetan_sql_log']; ?>
|
class 'cheetan_sql_log' is assigned to log table. You can change design of the log table if you create CSS.
| SQL | ERROR | ROWS | TIME |
|---|
| SELECT * FROM user WHERE status=1 LIMIT 5 | | 5 | 0.01205 |
|