How to set up custom error pages
Created 8 years ago by rickkukNeed instruction, specifically for 404...
hugogilmar
—
8 years ago
hugogilmar
—
8 years ago
Best Answer
I deal with that this way,
- Create a custom theme.
- Create custom error twig templates.
- Registrer error pages in theme service provider.
protected $overrides = [
'streams::errors/404' => 'theme::errors/404',
'streams::errors/500' => 'theme::errors/500'
];
Hope this helps.
ryanthompson
—
8 years ago
View's delegate the error output when not in debug mode so you can simply override those: https://github.com/pyrocms/starter-theme/blob/master/src/StarterThemeServiceProvider.php#L20
ryanthompson
—
8 years ago
I deal with that this way,
Hope this helps.