On Jul 10, 9:56 am, mussond <[EMAIL PROTECTED]> wrote: > Why is $this->query() to be avoided? I'm trying to use it but I'm > having trouble getting the values it produces from the array. Because it's the easiest way to introduce insecure queries into your application? Because a change to use a different db then means rewriting your application model code? Because you cannot take advantage of most of cakes model features by doing so? Because it's a lot harder to read? Because why write sql when you don' t need to? Because it makes you life a lot easier to use the methods cunningly hidden in plain sight throughout all tutorials, the source code, the manual and the api? Take your pick, AD PS look in the api at the method Model::findCount --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
