Home > Backend Development > PHP Tutorial > typecho如何判断404页面

typecho如何判断404页面

WBOY
Release: 2016-06-06 20:23:01
Original
1134 people have browsed it

typecho可以利用is语法判断页面,比如$this->is('page');,请问如何判断404页面?

回复内容:

typecho可以利用is语法判断页面,比如$this->is('page');,请问如何判断404页面?

没明白你的point是什么?
是想要抛出一个404页面吗?

<code>throw new Exception("Path 123 not found", 404);</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template