ksymmons Posted December 19, 2017 Share Posted December 19, 2017 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. Link to comment Share on other sites More sharing options...
DaveP Posted December 19, 2017 Share Posted December 19, 2017 Would if($page->is("template=''")) work? Link to comment Share on other sites More sharing options...
ksymmons Posted December 19, 2017 Author Share Posted December 19, 2017 4 hours ago, DaveP said: Would if($page->is("template=''")) work? Thanks, unfortunately, it doesn't seem to work. Any other ideas? Link to comment Share on other sites More sharing options...
ksymmons Posted December 19, 2017 Author Share Posted December 19, 2017 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now