大家好!
我有一个在我的应用程序文件夹之外加载项目的问题,如果我尝试浏览不是CI项目的其他页面,则会出现此错误。
Fatal error: Class 'CI' not found in /home/gcceclc/public_html/application/third_party/MX/Modules.php on line 91
在应用程序文件夹之外,我有另一个由我的其他页面组成的文件夹
home/gcceclc/public_html/other_project_folder_without_ci
我正在考虑我的.htaccess问题,因为在我写完.htaccess之前,我能够浏览我的其他项目。
如果有人知道如何解决这个问题,请分享。提前谢谢。
答案 0 :(得分:0)
您是否尝试在主index.php文件中更改应用程序目录的位置?
$application_folder = 'application';
将其更改为
$application_folder = '../application';
答案 1 :(得分:0)
所以这是解决我问题的解决方案
RewriteBase //
因为我认为这是我的.htaccess