i want to log all queries after execution using hooks. -i enabled hooks in config.php -this is my hook-->
$hook[\'post_controller\'] = array(
\'clas
For me it only worked when I define de $hook array in config/hooks.php .
Your Code looks fine - the only reason why this doesn't work is in your DB Configuration - take a look @your DB Connection in the database.php under application/config/
There is an option "save_queries" which should be set to true
$db['default'] = array(
...
'save_queries' => TRUE
);