Loading custom 403 page

Permalink
I have a catch page which handles all incoming forms. It begins with some logic to see whether the data is being submitted from the proper source and a few other security checks.

Currently if any of the checks fail a security message pops up and the header is changed to report a 403. This works, however, I'd feel like there is a concrete5 method which I'm not seeing.

The way 404 pages are handled is that the single page page_not_found.php is loaded as the content. I was hoping to achieve this result with page_forbidden.php

Any thoughts?

alivetech
 
hereNT replied on at Permalink Reply
hereNT
Seems like you should be able to do something like this:

$c = $this->getCollectionObject();
$v = View::getInstance();
$v->setCollectionObject($c);
$v->render('/page_forbidden');
break;


Not really sure, though.