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

typecho如何判断404页面

WBOY
WBOYOriginal
2016-06-06 20:23:011073browse

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

回复内容:

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

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

<code>throw new Exception("Path 123 not found", 404);</code>
Statement:
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