我一直在尝试在我的 codeigniter 中使用 tc_calender 进行数据采集。
我已将 tc_calender.php 和 calendar_form.php 存储在库文件夹中,并在 autoload.php 中提到:
$autoload['libraries'] = array('database','tc_calendar');
还包括以下工作正常:
<?php define('TLOGICURL', base_url()); ?>
<script src="<?php echo TLOGICURL;?>assets/js/calendar.js"></script>
<link href="<?php echo TLOGICURL;?>assets/css/calendar.css" rel="stylesheet">
但它显示以下错误:
A PHP Error was encountered
Severity: Warning
Message: Missing argument 1 for tc_calendar::tc_calendar(), called in D:\xampp\htdocs\tlogic\system\core\Loader.php on line 1099 and defined
Filename: libraries/tc_calendar.php
Line Number: 101
and
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: objname
Filename: libraries/tc_calendar.php
Line Number: 102