Can I have different ErrorPresenters for each module?

netteman
Member | 97
+
0
-

Hi

Can I have different ErrorPresenters for each module?

or

I can have only one ErrorPresenter for the whole app?

Thanks

Pavel Kravčík
Member | 1039
+
0
-

You can have one ErrorPresenter, which can call custom functions/repo/models/latte. In run() you get Nette\Application\Request as param.

Marek Bartoš
Nette Blogger | 501
+
0
-

Not in config, but your error presenter can still forward to other presenters. Presenters you forward to can even have routes, so forms will work.

https://github.com/…resenter.php#…
https://github.com/…resenter.php

Last edited by Marek Bartoš (2021-09-07 11:27)

netteman
Member | 97
+
0
-

Ok, thanks!