我只是按照以下链接的说明操作,但在将Sentry 2与Codeigniter 3集成时出现此错误。
链接:https://cartalyst.com/manual/sentry/2.1#configuration
遇到PHP错误
严重性:警告
消息:未找到类'Cartalyst \ Sentry \ Facades \ CI \ Sentry' 文件名:config / config.php
行号:513回溯:
文件:C:\ wamp \ www \ codeigniter2 \ application \ config \ config.php
行:513
功能:class_alias文件:C:\ wamp \ www \ codeigniter2 \ index.php
行:292
功能:require_once
答案 0 :(得分:2)
试一试
在require_once之前将autoload.php添加到Codeigniter的index.php BASEPATH.'core / CodeIgniter.php';
include_once './vendor/autoload.php';
答案 1 :(得分:0)
你必须跑
composer dump-autoload
第一
答案 2 :(得分:0)
嘿,如果有人仍在寻找解决方案,请尝试实施 - https://thephpx.wordpress.com/2018/04/25/setup-sentry-on-codeigniter-3-1/