Logging not working

I can’t seem to get logging to work I am calling it in my connector.php file like this

$grid->enable_log(“mylog.txt”);

but I don’t see any output file.

myconnector file

<?php 

require_once 'dhtmlxSuite/dhtmlxConnector/php/codebase/keygrid_connector.php';

$conn = mysql_connect("localhost", "root", "root");
if (!$conn) {
   die('Could not connect: ' . mysql_error());
}
$test = mysql_select_db("loxx", $conn);

if(!$test)
	throw new Exception('Table not found.');


$grid = new KeyGridConnector($conn);	
$grid->render_table("clients","name", "name,address,town,phone,email,username,password");
$grid->enable_log("mylog.txt"); 
?>

What am I doing wrong?

Change order of commands as

$grid = new KeyGridConnector($conn); $grid->enable_log("mylog.txt"); $grid->render_table("clients","name", "name,address,town,phone,email,username,password");

Any command after render_table will be ignored ( render_table finalizes request )

Thanks that was the issue, I just wish that that info was mentioned in the docs.

:mrgreen:

So do I. I just wasted two hours before I found this post.