dhtmlx / connector-php Goto Github PK
View Code? Open in Web Editor NEWPHP extension for the DHTMLX library
Home Page: http://dhtmlx.com/docs/products/dhtmlxConnector/index.shtml
License: GNU General Public License v3.0
PHP extension for the DHTMLX library
Home Page: http://dhtmlx.com/docs/products/dhtmlxConnector/index.shtml
License: GNU General Public License v3.0
I got error on basic_initialization for connectors about mysql_connect()
Can you help me to make it work?
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()
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 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
Hi,
Until version 2.x I used the php connector with the DHTMLX Scheduler including these files on my CI controller:
With 3.0 I see the files have been reorganized and renamed. Which files I have to include now?
Thx
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.
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
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.
(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.
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");`
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.