Я новичок в использовании планировщика dhtmlx. Я также хочу использовать общие события с данными о местоположении. Но я не могу, ниже мой серв
<?php
require_once('../common/connector/scheduler_connector.php');
require_once('../common/config.php');
$user_id = intval($_GET['user']);
$location_id = 11;
$scheduler = new schedulerConnector($res, $dbtype);
function default_values($action){
global $user_id;
$event_type = $action->get_value("event_type");
if ($event_type == "")
$event_type = 0;
$action->set_value("userId",$user_id);
$action->set_value("locationId", $location_id");
}
$scheduler->event->attach("beforeProcessing","default_values");
$scheduler->render_sql("select * from events_shared where userId = ".$user_id,"event_id","start_date,end_date,text,event_type,userId");
?>
$action->set_value("locationId", $location_id"); это единственная строка, которую я добавил в существующий пример кода, который я получил с официального сайта. Я также добавил столбец в таблицу events_shared.