Wednesday, August 24, 2011

Re: Component causing AppController to fail in 2.0 beta

Debug was already set to the highest level listed (2). I get errors for everything else, but apparently in CakePHP 2.0 Beta, there is some strange behavior if you don't enable a plugin but try to use it:

1. Component added to AppController for a non-enabled plugin made the entire AppController not run, but did not display any error messages. It simply acted as if I did not have a custom AppController defined.

2. Helper added to AppController for a non-enabled plugin was less catastrophic--it simply didn't work until I enabled the plugin.

I find it odd that if you try to use a model from a disabled plugin, you get a nice exception in CakePHP, but if you try to use a component or helper from a disabled plugin, it silently fails.

Ben

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: