Re: CakePHP should be more strict with unclean configuration, e.g. when specifying missing components! --psybear
Thank you for your replies. I was not aware that false is returned, so I'm taking back my accusation that CakePHP is lazy. Still I'd like to have an option that CakePHP automatically cries when in development mode... On Sat, Nov 13, 2010 at 5:32 PM, mark_story mark.st...@gmail.com wrote: Also App::import() returns false when an import fails. If you are interested in whether or not things succeed, you could check the return value of the method. -Mark On Nov 12, 5:05 am, psybear83 psybea...@gmail.com wrote: Hi all I don't get it why CakePHP doesn't complain about stuff like when one specifies missing components or fixtures: var $components = array('SomeNotExistingComponent'); var $fixtures = array('app.this_fixture_does_not_exist'); App::import('Lib', 'TheresNoSuchFileInLib'); All the three lines do not result in any error, and I guess there's more of that like $uses or stuff, but I didn't investigate this any further. Can anyone tell me why CakePHP just doesn't care about stuff like that? Seems vry unresponsible to me... Thanks for any hints Josh Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP should be more strict with unclean configuration, e.g. when specifying missing components! --psybear
Well you're going to hate Cake 2.0 which is getting rid of the error system in place of exceptions :P On Nov 16, 12:47 am, Joshua Muheim psybea...@gmail.com wrote: Thank you for your replies. I was not aware that false is returned, so I'm taking back my accusation that CakePHP is lazy. Still I'd like to have an option that CakePHP automatically cries when in development mode... On Sat, Nov 13, 2010 at 5:32 PM, mark_story mark.st...@gmail.com wrote: Also App::import() returns false when an import fails. If you are interested in whether or not things succeed, you could check the return value of the method. -Mark On Nov 12, 5:05 am, psybear83 psybea...@gmail.com wrote: Hi all I don't get it why CakePHP doesn't complain about stuff like when one specifies missing components or fixtures: var $components = array('SomeNotExistingComponent'); var $fixtures = array('app.this_fixture_does_not_exist'); App::import('Lib', 'TheresNoSuchFileInLib'); All the three lines do not result in any error, and I guess there's more of that like $uses or stuff, but I didn't investigate this any further. Can anyone tell me why CakePHP just doesn't care about stuff like that? Seems vry unresponsible to me... Thanks for any hints Josh Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP should be more strict with unclean configuration, e.g. when specifying missing components! --psybear
@Miles: oh no for sure I won't! That's exactly what I was expecting from CakePHP 2.0 already... :-P On Tue, Nov 16, 2010 at 7:24 PM, Miles J mileswjohn...@gmail.com wrote: Well you're going to hate Cake 2.0 which is getting rid of the error system in place of exceptions :P On Nov 16, 12:47 am, Joshua Muheim psybea...@gmail.com wrote: Thank you for your replies. I was not aware that false is returned, so I'm taking back my accusation that CakePHP is lazy. Still I'd like to have an option that CakePHP automatically cries when in development mode... On Sat, Nov 13, 2010 at 5:32 PM, mark_story mark.st...@gmail.com wrote: Also App::import() returns false when an import fails. If you are interested in whether or not things succeed, you could check the return value of the method. -Mark On Nov 12, 5:05 am, psybear83 psybea...@gmail.com wrote: Hi all I don't get it why CakePHP doesn't complain about stuff like when one specifies missing components or fixtures: var $components = array('SomeNotExistingComponent'); var $fixtures = array('app.this_fixture_does_not_exist'); App::import('Lib', 'TheresNoSuchFileInLib'); All the three lines do not result in any error, and I guess there's more of that like $uses or stuff, but I didn't investigate this any further. Can anyone tell me why CakePHP just doesn't care about stuff like that? Seems vry unresponsible to me... Thanks for any hints Josh Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP should be more strict with unclean configuration, e.g. when specifying missing components! --psybear
Also App::import() returns false when an import fails. If you are interested in whether or not things succeed, you could check the return value of the method. -Mark On Nov 12, 5:05 am, psybear83 psybea...@gmail.com wrote: Hi all I don't get it why CakePHP doesn't complain about stuff like when one specifies missing components or fixtures: var $components = array('SomeNotExistingComponent'); var $fixtures = array('app.this_fixture_does_not_exist'); App::import('Lib', 'TheresNoSuchFileInLib'); All the three lines do not result in any error, and I guess there's more of that like $uses or stuff, but I didn't investigate this any further. Can anyone tell me why CakePHP just doesn't care about stuff like that? Seems vry unresponsible to me... Thanks for any hints Josh Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP should be more strict with unclean configuration, e.g. when specifying missing components! --psybear
On Fri, Nov 12, 2010 at 5:05 AM, psybear83 psybea...@gmail.com wrote: Hi all I don't get it why CakePHP doesn't complain about stuff like when one specifies missing components or fixtures: var $components = array('SomeNotExistingComponent'); var $fixtures = array('app.this_fixture_does_not_exist'); App::import('Lib', 'TheresNoSuchFileInLib'); All the three lines do not result in any error, and I guess there's more of that like $uses or stuff, but I didn't investigate this any further. It would have taken you all of ... four seconds? ... to add 'Foo' to some controller's $uses array and load up a route pointing to it. For those who can't bear the suspense: Cake will complain that the table for the model is missing. Remember that Cake can virtualize a model, so a missing model class is not necessarily a show-stopper. Can anyone tell me why CakePHP just doesn't care about stuff like that? Seems vry unresponsible to me... It's not that Cake doesn't care--it'll simply return false when, eg. failing to load a missing component. What's unresponsible is listing components, plugins, etc. that don't exist. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP should be more strict with unclean configuration, e.g. when specifying missing components! --psybear
It will error out when you try to access a component that doesn't exist. Adding an invalid string to an array should not cause CakePHP to barf errors. On Nov 12, 10:09 am, cricket zijn.digi...@gmail.com wrote: On Fri, Nov 12, 2010 at 5:05 AM, psybear83 psybea...@gmail.com wrote: Hi all I don't get it why CakePHP doesn't complain about stuff like when one specifies missing components or fixtures: var $components = array('SomeNotExistingComponent'); var $fixtures = array('app.this_fixture_does_not_exist'); App::import('Lib', 'TheresNoSuchFileInLib'); All the three lines do not result in any error, and I guess there's more of that like $uses or stuff, but I didn't investigate this any further. It would have taken you all of ... four seconds? ... to add 'Foo' to some controller's $uses array and load up a route pointing to it. For those who can't bear the suspense: Cake will complain that the table for the model is missing. Remember that Cake can virtualize a model, so a missing model class is not necessarily a show-stopper. Can anyone tell me why CakePHP just doesn't care about stuff like that? Seems vry unresponsible to me... It's not that Cake doesn't care--it'll simply return false when, eg. failing to load a missing component. What's unresponsible is listing components, plugins, etc. that don't exist. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en