We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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



43.9k

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) ?



8.0k

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