Hi guys,
I try the following:
index.html:
webix.ready(function(){
webix.ui({
type:"line",
container:"module_wrapper",
rows: [
{ template:"Left Col"},
{ view:"treetable",
columns:[
{ id:"cat_id", header:cat_id, width:20 },
{ id:"cat_image", header:cat_image, width:80 },
{ id:"parent_id", header:parent_id, width:100 }
],
dataFeed: "/data/cat_dyn.php"}
]
});
});
cat_dyn.php:
require("../connector/data_connector.php");
//require("../connector/base_connector.php");
require("../connector/db_pdo.php");
$db = new db( $server, $username, $password, $options, $attributes);
$data = new DataConnector($db, "PDO");
$data->dynamic_loading(30);
$data->render_table("cats","cat_id","cat_id, cat_image, parent_id");
The result comes in perfext XML but the values and rows are not beeing displayed.
If I try $data = new JSONDataConnector($db, “PDO”); an error occurs and tells that there is no class like JSONDataConnector
How can I fill the result data into the indexed columns?
regards gwinger