title: Cakephp 3.x Exception render - different layout
body: <p>This document shows how to assign layout for error:
  <code>$this-&gt;layout = 'my_error';</code></p>
  
  <p><a href="http://book.cakephp.org/3.0/en/development/errors.html#exception-renderer" rel="nofollow">http://book.cakephp.org/3.0/en/development/errors.html#exception-renderer</a></p>
  
  <p>But i've 2 different layouts for frontend and backend. When <code>NotFoundException</code> is thrown, i want to assign different layout accordingly.
  How can i do that? Please help me.</p>