我正在尝试将fullcalendar添加到我的cakephp项目中。 但是,系统因fullcalendar中的javascript包含一些文件而失败。
我通过Google Chrome控制台发现该页面正在加载;但当我打开页面时,我得到以下内容:
Missing Controller
Error: IncludesController could not be found.
Error: Create the class IncludesController below in file: app\Controller\IncludesController.php
<?php
class IncludesController extends AppController {
}
Notice: If you want to customize this error message, create app\View\Errors\missing_controller.ctp
Stack Trace
所以...页面正在加载......但是...... CakePHP阻止它...我怎么能绕过cakephp让我的javascript加载文件?
非常感谢!!!!
修改
当我加载页面时,我从chrome的控制台收到此消息:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/projects/cake/clean/vendors/includes/cal_events.php?
start=1380405600&end=1384038000&_=1382911071971
cal_events.php的位置是:
C:\xampp\htdocs\projects\cake\clean\Vendor\includes\cal_events.php
cal_events.php的内容是:
<?php
// Loader - class and connection
include('loader.php');
echo $calendar->json_transform();
?>
加载此文件的JavaScript:
var defaults =
{
calendarSelector: '#calendar',
timeFormat: 'H:mm - {H:mm}',
ajaxJsonFetch: 'vendors/includes/cal_events.php',
我希望这很好...... 再次......非常感谢!