I’m trying to integrate dhtmlxScheduler in an application developed with ZendFramework.
I’ve created this controler
public function init()
{
$this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');
$this->_redirector = $this->_helper->getHelper('Redirector');
/**
* Ajoutes les fichiers css et js
*/
$this->view->headLink()->appendStylesheet($this->view->baseUrl('/dhtmlxScheduler/codebase/dhtmlxscheduler.css'));
$this->view->headScript()->appendFile($this->view->baseUrl('dhtmlxScheduler/codebase/dhtmlxscheduler.js'));
$this->view->headScript()->appendFile($this->view->baseUrl('js/planning.js'));
}
public function indexAction()
{
}
with this view for index.phtml :
<style type="text/css" media="screen">
html, body{
overflow:auto;
}
</style>
<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>
and this JS file for initialization
function init() {
scheduler.config.multi_day = true;
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.init('scheduler_here',null,"week");
scheduler.load("../dhtmlxScheduler/samples/common/events.xml");
}
$(document).ready(function(){
init();
});
but it displays nothing and i don’t understand why.
Somebody can help me ?
Thank