public function s404(){
http_response_code(404);
// return $this->fetch('portal@/404');
// 自定义模拟的404 直接return状态码还是200 所以这里使用了exit退出直接返回数据
exit($this->fetch('portal@/404'));
}
相关文章
public function s404(){
http_response_code(404);
// return $this->fetch('portal@/404');
// 自定义模拟的404 直接return状态码还是200 所以这里使用了exit退出直接返回数据
exit($this->fetch('portal@/404'));
}