How do I send variables to an error layout in ZF3?

Use a listener instead of a “parent controller”. All based information can be found in the zend-mvc documentation and different code examples here in the forum.