Jump to content

Exclude 500.html from file appending/prepending

Recommended Posts


I'm using the delayed output method on a site I'm building, so I have this on my config.php file:

$config->prependTemplateFile = './_init.php';
$config->appendTemplateFile = './_footer.php';

This approach is working great but I'm now facing a problem with error pages, in particular, with the errors/500.html page. I need to find a way to stop the appending and prepending of the above files to the 500.html file.

This is easy enough to do when there are templates involved, like in the following example:


However, how do I exclude the 500.html when there's no template associated with it?


Share this post

Link to post
Share on other sites
4 hours ago, DaveP said:




Thanks, unfortunately, it doesn't seem to work. Any other ideas?

Share this post

Link to post
Share on other sites

Sorry guys, upon further testing, it seems like PW is not appending or prepending the files to the error page at all, so problem solved.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...