For PHP connector, how do I init the $conn for render_array

Hi ,

for PHP connector, how do I init the $conn for render_array in following code.
Do I need configure the conn first ?

$data = array(
array(“id”=> “1”, “product” =>“Phone AB12”, “price”=>“460”),
array(“id”=> “2”, “product”=>“Tablet device”, “price”=>“830”)
);
$conn->render_array($data, “id”, “product,price”);

Thanks,
Willy Lin

At first you need to initialize the connector object, then you can call the render_array method to assign it to the defined and initialized connector.
for example:

$conn = new GridConnector($res, "PDO");
$conn->render_array($data, "id", "product,price");