Re: How get Exception Handler to use plugin layout?

2012-06-22 Thread Mark Wratten
Majna, thanks for the tip. That inspired me to think about it a bit more and I figured it was simpler and cleaner to set the layout in bootstrap.php where the plugin is loaded. That is working well. Thanks Mark On Friday, June 22, 2012 2:24:36 PM UTC-4, majna wrote: > > You can use AppControll

Re: How get Exception Handler to use plugin layout?

2012-06-22 Thread majna
You can use AppController or MyPluginAppController beforeRender() callback to check if controller name is 'CakeError' and set $this->layout = 'MyPlugin.error' or extend ExceptionRenderer http://book.cakephp.org/2.0/en/development/exceptions.html#using-a-custom-renderer-with-exception-renderer-t

How get Exception Handler to use plugin layout?

2012-06-21 Thread Mark Wratten
We are rewriting our site to use Cake 2.1 and I'm really loving the new features. The site has a back-end administration function which I have implemented as a plugin, including its own layout file. The admin function runs off its own host name, so I have a line in bootstrap.php that checks the