【发布时间】:2016-09-20 12:36:15
【问题描述】:
我已经安装了 codeigniter 和杂货店杂货,我得到它来显示我的数据库,然后突然我收到这条消息:
Warning: require_once(C:\xampp\htdocs\stlc_tables\config/constants.php): failed to open stream: No such file or directory in C:\xampp\htdocs\stlc_tables\system\core\CodeIgniter.php on line 70
Fatal error: require_once(): Failed opening required 'C:\xampp\htdocs\stlc_tables\config/constants.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\stlc_tables\system\core\CodeIgniter.php on line 70
我该如何解决这个问题?这是什么意思?谢谢
【问题讨论】:
-
通过转到
C:\xampp\htdocs并检查实际文件路径是什么。 -
这里你的路径是错误的
C:\xampp\htdocs\stlc_tables\config/constants.php。你在 CI 中使用FCPATH -
我是新手,我该怎么做?
-
@excelsiorone 在你使用
require_once的地方添加你的代码?? -
@VicSeedoubleyew 看起来不错,谢谢
标签: php mysql codeigniter grocery-crud