connector-php icon indicating copy to clipboard operation
connector-php copied to clipboard

Connector 3.0 HowTo

Open Dimas-sc opened this issue 9 years ago • 4 comments

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

Dimas-sc avatar Jun 29 '15 08:06 Dimas-sc

Hello! Do you want to use connector for CI 3 via composer?

EgorLazarovich avatar Jun 29 '15 09:06 EgorLazarovich

I'm downloading it manually and including it in the CI 3 controller with:

require_once("assets/dhtmlx/dhtmlxConnector/codebase/scheduler_connector.php"); require_once("assets/dhtmlx/dhtmlxConnector/codebase/db_phpci.php");

and:

DataProcessor::$action_param ="dhx_editor_status"; $conn = new SchedulerConnector($this->db, "PHPCI");

Dimas-sc avatar Jun 29 '15 11:06 Dimas-sc

I need to change the way I've integrated the DHTMLX Connector with CI 3 controllers?

Dimas-sc avatar Jul 07 '15 10:07 Dimas-sc

Use Dhtmlx\Connector;

// to function $this->conn = new Connector\JSONDataConnector($this->db, "MySQLi"); $this->conn->configure("events", "event_id", "start_date, end_date, event_name"); $this->conn->useModel(Event); $this->conn->dynamic_loading(30); $this->conn->render();

aviqbaihaqy avatar Aug 27 '15 09:08 aviqbaihaqy