Ozzy47
Well-known member
Working with
XF/Mvc/Renderer/Rss.php
I am looking to return a error on the page if someone accesses the RSS url directly. I can't for the life of me seem to get it worked out how to show a error instead of just a blank page. I can keep the 404 or not, but I would like a error to be shown.
PHP:
protected function initialize()
{
parent::initialize();
$this->response->contentType('text/html');
$this->response->httpCode(404);
return $this->noPermission();
}