Giter Club home page Giter Club logo

connector-php's Introduction

DHTMLX Connector for PHP

dhtmlxConnector is an extension for the DHTMLX library, which maps client-side components onto the server-side datasource. Supported components are:

You don't need to worry about data formats any more. dhtmlxConnector will handle data connections between the server-side database and client-side components, seamlessly loading content. When integrated with dhtmlxDataProcessor on the client side, dhtmlxConnector also takes care of update/insert/delete operations.

It organizes server-side functionality to support special modes for components working with large amounts of data (such as dynamic loading, Smart Rendering, and paging) as well as server-side sorting and filtering.

External links

Other languages

connector-php's People

Contributors

alexklimenkov avatar dmitry-radyno avatar egorlazarovich avatar maria-staskova avatar mkozhukh avatar stanislav-wolski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

connector-php's Issues

Trying to get property of non-object on db_phpci.php line 52

Hye,
Just to add a problem with CI and perhaps for the others frameworks too.
Log message : Trying to get property of non-object on ../connector/db_phpci.php line 52.
The problem is that $res in PHPCIResultSet's constructor can be a non object because switch type database used, $this->db doesn't have object property required on PHPCIResultSet's constructor.
I suggest to add this line on PHPCIResultSet's constructor :
if(!is_object($res))
{
$this->count = '';
$this->start = '';
}
else
{
$this->count = $res->num_rows;
$this->start = $res->current_row;
}
Thus, no problem in logs. Otherwise, it seems to be good for all actions but this problem is present on log message.
Have a good day.
Casa

Hi laravel9 Treegird Connector issue

Hi i use laravel9 on TreeGridConnector but
this not working;

namespace App\Http\Controllers;

use App\Models\Test;
use Illuminate\Http\Request;
use Dhtmlx\Connector\TreeGridConnector;

class TestController extends Controller
{
public function index()
{
return view('test');
}

public function test_get()
{
$data = Test::get()->toArray();
$treegrid = new TreeGridConnector(null, "PHPLaravel");
$treegrid->configure($data,"id","name","", "parent_id");
 $treegrid->render();

}

}

Thic code return http500
if i changed this line
//$treegrid->configure($data,"id","name","", "parent_id"); //
$treegrid->configure(new Test(),"id","name","", "parent_id");
array_key_exsist()

Fatal error: Call to a member function quote() on resource

Hi everyone,

I'm just trying to use that code and reproduce an example connecting with my database.
My code for connect:

`include ('library/codebase/scheduler_connector.php');

$res=mysql_connect('xxx.xxx.xxx.xxx:xxxx','user','password');
mysql_select_db("schema");

$calendar = new SchedulerConnector($res);
$calendar->render_table("scheduler","id","start_date,end_date,text","type");`

Connector 3.0 HowTo

Hi,
Until version 2.x I used the php connector with the DHTMLX Scheduler including these files on my CI controller:

  • scheduler_connector.php
  • db_phpci.php

With 3.0 I see the files have been reorganized and renamed. Which files I have to include now?

Thx

Troubles in DataItem class

Line 113:

Now there is:
$this->xmlentities($this->data[$name])
but I think there should be the following:
$this->xmlentities($this->data[$db_name])

I found this issue on the Laravel framework when tried to load options for the columns with dropdown list in dhtmlxGrid.

OT: wrong link on Tree page

(Couldn't find a repo for the actual tree or DHTML UI widgets, so filing here)

At the end of this page, there's this text:

Some popular icon sets are included in the distributed package. You can try some of them on dhtmlxTree page.

The link doesn't point to a tree page.

DHTMLX connector support php 7 live server

Hi Im using Dhtmlx Scheduler, but seems i can connect to the live database, itried using the code below but its not working..

data.php
require_once(dirname(FILE).'/lib/dhtmlxScheduler/connector/scheduler_connector.php');
include('./config.php');
$scheduler = new JSONSchedulerConnector($res,$dbtype);
$roomtypes = new JSONOptionsConnector($res, "PDO");
$roomtypes->render_table("ns_room_types","idx","idx(value),room_name(label),name");
$scheduler->set_options("roomType", $roomtypes);

config.php
require_once(dirname(FILE).'/lib/dhtmlx_codebase/connector/db_pdo.php');
$dbtype = "PDO";
$res = new PDO("mysql:dbname=felladmin;host=localhost","xxx","xxx")

this is not displayig or retrieving any data, but if i tried this other code

// require_once('./lib/dhtmlx_codebase/connector/dataview_connector.php');
// $conn = new PDO("mysql:dbname=felladmin;host=localhost","felladmin","Fella@talamban");
// $data = new DataViewConnector($conn);
// $data->render_table("ns_room_types","idx","idx(value),room_name(label),name");

this retrieves data, why is the scheduler_connector not working? im working in the live server, but im my local seems to be working fine, hope to hear from you soon.

does DHTMLX connector support PHP7 ?

Hi,

We have a project that uses some DHTMLX components. Updated to Ubuntu 16.04 that has only PHP7 and DHTMLX stopped working. Please advice.

thanks,
Janusz

Composer and Autoload

Hi DHTMLX Team,

Just wondering if there is any plan to refactor this library to follow the PSR standard and use composer autoloading feature.

regards
Ikhsan

populating select from database : particular schema

Hye,
I have this problem :
1rst table : agenda with columns (id, start_date, end_date, text)
2nd table : agenda_civilite with columns (idac, id, idcivilite)
3rd table : civilite with columns (idcivilite, code, libelle)
I need to populating my view with the good 'idcivilite' and i used CrossOptionConnector because OptionsConnector needs that a column must be present on my first table. But me i have another table like 'agenda_civilite' and this, is one of my problem. I want to have 'select' and not 'multiselect' (Cf. infra)

In the view, with, my code is :
scheduler.config.lightbox.sections =
[
{ name: "idcivilitefrombdd", height: 21,
map_to: "idcivilite",
type: "multiselect",
options: scheduler.serverList("id_civilite"),
script_url: 'chargeur/gerer_agenda'}
]
In my controller, CrossoptionsConnector works with type "multiselect" in my view but with "select" it doesn't work and my 'idcivilite' is not associated to the good 'idcivilite' present in table "agenda_civilite".
How can i have the good 'idcivilite' selected if i want to have type : "select" on the code (Cf. supra).
With JSON component, type:"select" works !! but without JSON, i must use type :"multiselect" :(
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.