To use the functionality of DHTMLX Connector, firstly you should initialize it.
Generally, both client and server sides are concerned in it.
Specify connector file in the load method of a component.
//index.html
myGrid = new dhtmlXGridObject("someContainer");// initializes grid
...
myGrid.load("my_connector.php");
//index.html
myGrid = new dhtmlXGridObject("someContainer");// initializes grid
...
myGrid.load("my_connector.php");
myDP = new dataProcessor("myconnector.php");// initializes dhtmlxDataProcessor
myDP.init(myGrid);
Samples of Client-Side Initialization
//my_connector.php
require("connector/grid_connector.php");// connector file
$res=new PDO("mysql:dbname=myDatabase;host=localhost","root","");// db connection
// connector object; parameters: db connection and the type of the used db
$gridConn = new GridConnector($res,"MySQL");
$gridConn->render_table("mytable","item_id","item_nm,item_cd");// data configuration
Samples of Server-Side Initialization
Back to top