Jump to content
ksymmons

Exclude 500.html from file appending/prepending

Recommended Posts

Hi,

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:

if(!$page->is("template=rss"))

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

Thanks.

Share this post


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

Would 


if($page->is("template=''"))

work?

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.

Guest
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...