Displaying the configured 403 error in Symfony 1.4
Today I had to figure out how to trigger a 403 error and display the appropriate error page. I wanted to use the configured 403 page that the authentication system displays on failure. So after a bit of digging I found that to display this page you call the following (From the controller):
$this->forward(sfConfig::get('sf_secure_module'), sfConfig::get('sf_secure_action'));
To set the HTTP status code to 403 you would use (Again from the controller):
$this->getContext()->getResponse()->setStatusCode(403);
This should give you a 403 response with the configured permission/access denied page.
Note: I haven’t worked with Symfony a lot so there might be a better way, yet I haven’t been able to found one, if there’s a better way, let me know in the comments!
Skyrim Downgrade to 1.1
So the masterminds at Bethesda managed to break more than they fixed in 1.2, now I love them for making these games but fixing bugs is obviously not their strongest point.
Anyway, as I’ve been searching for a way to revert to 1.1 without having the files myself and having finally found these files I wanted to share them, and thank the people that uploaded them, so without further ado:

