Error controllers in multi module projects

Hi,

I asked this on Gitter earlier, but not sure anyone here is actually using that as the last activity is Dec 31st 2016.

Is there a decent way of dealing with error controllers in multi module projects? I don’t really want to create a controller in each module if I don’t have to but when I do $dispatcher->forward(); with namespace, controller, action and return false in my beforeException plugin I just get a white screen.

Thanks, Gary



28.4k

Hi,

is your error controller in the default namespace / default module ?

are there any error message with your blank page (http error, or in server log) ?



4.1k

You can do BaseController that can be parent for all modules controllers, and this BaseController will process 404 and 403