Hi
I have a problem. I don’t use the php library of dhx, because I use other tables and fields. Because of that I just made my own simple php file:
[code]<?php
/**
- Initialize the system
*/
define(‘TL_MODE’, ‘BE’);
require(’…/…/initialize.php’);
/**
-
Class Appointments
*/
class Appointments extends Frontend
{/**
- Initialize object (do not remove)
*/
public function __construct()
{
parent::__construct();
}
/**
-
Run the controller
*/
public function run()
{
$arrAppointments = array();$strData = ’<?xml version="1.0" encoding="UTF-8" ?>
<start_date>2009-05-24 00:00:00</start_date>
<end_date>2009-06-08 00:00:00</end_date>
- Initialize object (do not remove)
';
return $strData;
}
}
/**
- Instantiate controller
*/
$objAppointments = new Appointments();
echo $objAppointments->run();
?>[/code]
My js function code:
[code][/code]
Now, when I open the scheduler I only get the xml code printed out in a js popup window. It doesn’t load the xml from the php file as it should. What is wrong with the code?
Some information:
- scheduler is included via iframe in another web page
I hope you can help me! Thanks!