|
环境:codeigniter2.0
因为项目有前后台,所以在根目录下新建admin文件夹,复制index.php放到admin目录下。编辑admin/index.php
修改项目位置:
$system_path = '../system';
$application_folder = '../application/admin';
然后在application下新建admin文件夹,复制几个需要的文件夹到application/admin下
但是涉及到错误处理的时候,怎么会出现路径不对的情况。
Warning: CI_Exceptions::include(../application/admin/errors/error_php.php) [function.CI-Exceptions-include]: failed to open stream: No such file or directory in D:\Program Files\Apache\htdocs\furniture\system\core\Exceptions.php on line 182
Warning: CI_Exceptions::include() [function.include]: Failed opening '../application/admin/errors/error_php.php' for inclusion (include_path='.;C:\php5\pear') in D:\Program Files\Apache\htdocs\furniture\system\core\Exceptions.php on line 182
Warning: CI_Exceptions::include(../application/admin/errors/error_php.php) [function.CI-Exceptions-include]: failed to open stream: No such file or directory in D:\Program Files\Apache\htdocs\furniture\system\core\Exceptions.php on line 182
Warning: CI_Exceptions::include() [function.include]: Failed opening '../application/admin/errors/error_php.php' for inclusion (include_path='.;C:\php5\pear') in D:\Program Files\Apache\htdocs\furniture\system\core\Exceptions.php on line 182
这种情况该怎么处理,路径错了。
|
|