Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Framework (only) and custom error pages

$
0
0

Hi,
I use only SilverStripe Framework (3.1.5) and I have problem with handling error page.
In CMS we have page type "ErrorPage". We set error code and content - OK.
But how build error page in framework controller?
1) When page not found SilverStripe returns 200 code.

[response:protected] => SS_HTTPResponse Object
(
[statusCode:protected] => 200
[statusDescription:protected] => OK
[headers:protected] => Array
(
[Content-Type] => text/html; charset=utf-8
)

[body:protected] =>
)

But in GoogleChrome inspector is 404

2) How set custom error page template? I use nginx and set error page - but when page is not found, only I can se is empty - white screen.

best regards


Posted to: Framework (only) and custom error pages | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles