Hi, Did you get it to work?
I seem to be stuck, where it will not render the scheduler, but if I have the files in a different directory away from CodeIgniter, then it works.
I have copied the files needed for the scheduler in the same directory, in order to avoid the path changes, as I struggled with that as well.
I do apologize for being very new at this, but I am slightly frustrated in not getting this easy step to work.
The attached Sandbox.zip contains:
sample dhtmlxscheduler file (originally called 01_basic_init.html, just changed the paths, added to to see if some execution is happening):
[list] * calendar2.php
standard dhtmlxscheduler files
* dhtmlxscheduler.css
* dhtmlxscheduler.js
* dhtmlxscheduler_debug.js
* events2010.xml
[/list:u]
All of the above files went into the \views directory
from \controllers
The contents of \controllers\calendar.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Calendar extends CI_Controller {
public function index()
{
echo 'v1.00';
$this->load->view('calendar2');
}
}
Contents of \views\calendar2.php (located in Sandbox.zip)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title></title>
</head>
<script src="dhtmlxscheduler_debug.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="dhtmlxscheduler.css" type="text/css" media="screen" title="no title" charset="utf-8">
<style type="text/css" media="screen">
html, body{
margin:0px;
padding:0px;
height:100%;
overflow:hidden;
}
</style>
<script type="text/javascript" charset="utf-8">
function init() {
scheduler.config.multi_day = true;
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.init('scheduler_here',new Date(2010,7,5),"week");
scheduler.load("events2010.xml");
}
</script>
<body onload="init();">
test3 gus
<div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
<div class="dhx_cal_navline">
<div class="dhx_cal_prev_button"> </div>
<div class="dhx_cal_next_button"> </div>
<div class="dhx_cal_today_button"></div>
<div class="dhx_cal_date"></div>
<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
</div>
<div class="dhx_cal_header">
</div>
<div class="dhx_cal_data">
</div>
</div>
</body>
Any help will be greatly appreciated!
I am stumped as to why EasyPHP will render it without problems, but as soon as it goes into the CI application directory, it no longer renders.
Regards,
Gustav
Sandbox.zip (66 KB)