上传到服务器时
/app
/public_html
/vendor
/writable
以及使用https://server.com/home我看到欢迎页面,但当我使用https://server.com/pages我收到一个错误"CodeIgniter\View\Exceptions\ViewException"无效文件:pages/home.php第21行的SYSTEMPATH/Exceptions/FrameworkException.php
public static function forEnabledZlibOutputCompression()
15 {
16 return new static(lang('Core.enabledZlibOutputCompression'));
17 }
18
19 public static function forInvalidFile(string $path)
20 {
21 return new static(lang('Core.invalidFile', [$path]));
22 }
23
24 public static function forCopyError(string $path)
25 {
26 return new static(lang('Core.copyError', [$path]));
27 }
28
return view('users/signin',$data);
<?= $this->extend('layouts/signin') ?>
这是Slash问题引起的,我以前也有同样的问题,现在一切都很好