Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connector 3.0 HowTo #9

Open
Dimas-sc opened this issue Jun 29, 2015 · 4 comments
Open

Connector 3.0 HowTo #9

Dimas-sc opened this issue Jun 29, 2015 · 4 comments

Comments

@Dimas-sc
Copy link

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

@EgorLazarovich
Copy link
Contributor

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

@Dimas-sc
Copy link
Author

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
Copy link
Author

Dimas-sc commented Jul 7, 2015

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

@aviqbaihaqy
Copy link

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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants