FullCalendar cakephp:在日历上显示关联模型中的数据

FullCalendar cakephp:在日历上显示关联模型中的数据,fullcalendar,cakephp-2.4,Fullcalendar,Cakephp 2.4,我在一个节日网站上工作,使用了FullCalendar插件,工作正常,但我想它应该显示节日表中的节日名称,而不是日历中的标题。我在事件表中包括节日id字段 class FullCalendarController extends FullCalendarAppController { var $name = 'FullCalendar'; function index() { } } class FullCalendarAppController e

我在一个节日网站上工作,使用了FullCalendar插件,工作正常,但我想它应该显示节日表中的节日名称,而不是日历中的标题。我在事件表中包括节日id字段

    class FullCalendarController extends FullCalendarAppController
 {

    var $name = 'FullCalendar';

    function index() {
    }

}


 class FullCalendarAppController extends AppController 


  {

          //var $components = array('Acl', 'Session');
        var $components = array('Session');
        var $helpers = array('Html', 'Form', 'Session', 'Js'=>array('Jquery'));
    }
class FullCalendar extends FullCalendarAppModel


{

    var $useTable = false;
    var $name = 'FullCalendar';

}
Fullcalendar index.ctp

<script type="text/javascript">
plgFcRoot = '<?php echo $this->Html->url('/'); ?>' + "full_calendar";
</script>
<?php
echo $this->Html->script(array('/full_calendar/js/jquery-1.5.min', '/full_calendar/js/jquery-ui-1.8.9.custom.min', '/full_calendar/js/fullcalendar.min', '/full_calendar/js/jquery.qtip-1.0.0-rc3.min', '/full_calendar/js/ready'), array('inline' => 'false'));
echo $this->Html->css('/full_calendar/css/fullcalendar', null, array('inline' => false));
?>


<div class="Calendar index">
    <div id="calendar"></div>
</div>
<div class="actions">
    <ul>
        <li><?php echo $this->Html->link(__('New Event', true), array('plugin' => 'full_calendar', 'controller' => 'events', 'action' => 'add')); ?></li>
        <li><?php echo $this->Html->link(__('Manage Events', true), array('plugin' => 'full_calendar', 'controller' => 'events')); ?></li>
        <li><?php echo $this->Html->link(__('Manage Events Types', true), array('plugin' => 'full_calendar', 'controller' => 'event_types')); ?></li>
    </ul>
</div>
我不知道怎么做!提前感谢….

以下是日历事件JSON表示的外观

{
    id: "id value", 
    end: "end date", //when event ends - required field
    start: "start date", // when event starts - required field
    title: "title value",
    textColor: "color value",
    className: "add your style Class",
    backgroundColor: "color value",
    borderColor: "color value",
    editable: "boolean value"
}

只需确保此服务事件:plgFcRoot+/events/feed返回设置了title:title-value属性的日历事件。

请显示一些代码我的代码@基德旺头球:{左:'title'…这就是你说的标题吗?我不知道我应该在哪里更改代码来获取相关的模型数据,无论我更改了什么,它都会显示在事件索引、查看、添加、编辑中,但我想显示在完整日历的clandar中,或者我应该使用任何其他插件或其他东西!!@kidwonno我不是说这个标题,我我指的是日历中显示的事件表中的标题字段。左边的:“标题”表示年份的月份名称…@Kidwon我必须将此代码放置在何处,以及如何从关联的表中获取节日名称…@Kidwon如果您有任何日历事件,如我所想,这意味着您的服务方法plgFcRoot+/events/feed提供了一个日历事件对象数组,如上所述。只需使用节日标题的名称设置title属性:在php服务方法中为每个节日事件设置“我的节日名称”。谢谢@kidwen的解释
{
    id: "id value", 
    end: "end date", //when event ends - required field
    start: "start date", // when event starts - required field
    title: "title value",
    textColor: "color value",
    className: "add your style Class",
    backgroundColor: "color value",
    borderColor: "color value",
    editable: "boolean value"
}