当前位置:Gxlcms > PHP教程 > typecho如何判断404页面

typecho如何判断404页面

时间:2021-07-01 10:21:17 帮助过:18人阅读

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

回复内容:

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

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

throw new Exception("Path 123 not found", 404);

人气教程排行