TinyButStrong - the PHP Template Engine
Categories > TinyButStrong general >

Issue 404 Error

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs

By: Anthony
Date: 2014-10-07
Time: 22:00

Issue 404 Error

Is there a way with TBS to issue a Page Not Found 404 Error when mergeblock returns no data? Basically my template is pulling strictly from a DB and when no rows are returned I would like to just issue a 404 error message.
By: Skrol29
Date: 2014-10-08
Time: 01:19

Re: Issue 404 Error

No. This is not possible. TBS send no HTML header.