Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/379.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Dhtmlx Gannt图表不工作_Javascript_Php_Jquery_Codeigniter_Dhtmlx - Fatal编程技术网

Javascript 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

我正在使用CodeIgniter和DHTMLX在我的系统中构建gannt图表。我已经按照网站上的教程进行了相应的操作。但该图表不会显示在网页上。我是新来的。任何帮助都将不胜感激

这是我在控制器中的代码

    <?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;