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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...