Javascript Dhtmlx Gannt图表不工作
我正在使用CodeIgniter和DHTMLX在我的系统中构建gannt图表。我已经按照网站上的教程进行了相应的操作。但该图表不会显示在网页上。我是新来的。任何帮助都将不胜感激 这是我在控制器中的代码Javascript Dhtmlx Gannt图表不工作,javascript,php,jquery,codeigniter,dhtmlx,Javascript,Php,Jquery,Codeigniter,Dhtmlx,我正在使用CodeIgniter和DHTMLX在我的系统中构建gannt图表。我已经按照网站上的教程进行了相应的操作。但该图表不会显示在网页上。我是新来的。任何帮助都将不胜感激 这是我在控制器中的代码 <?php use codebase/connector/GanttConnector; class Gantt extends CI_Controller { public function index(){ $admi
<?php
use codebase/connector/GanttConnector;
class Gantt extends CI_Controller {
public function index(){
$admindata["main_content"] = 'GanttView';
$this->load->view('dashboard/dashboard_main/template',$admindata);
}
public function data(){
$this->load->database(); // data feed
$controller = new GanttConnector($this->db, "PHPCI");
$controller->render_links("gantt_links", "id", "source,target,type");
$controller->render_table(
"gantt_tasks",
"id",
"start_date,duration,text,progress,parent"
);
}
}
?>
这件事有什么帮助吗?谢谢
<div id="gantt_here" style='width:100%; height:250px;'></div>
<script type="text/javascript">
gantt.init("gantt_here", new Date(2010,7,1), new Date(2010,8,1));
// refers to the 'data' action that we will create in the next substep
gantt.load("./gantt/data", "xml");
// refers to the 'data' action as well
var dp = new dataProcessor("./gantt/data");
dp.init(gantt);
</script>
use codebase/connector/GanttConnector;