If you don't like it (and you have no other model associations as mentioned by AD7) you can change it in the controller:
$post = $this->Post->find(); $post = $post['Post']; On Jun 12, 8:54 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Jun 12, 9:44 pm, zw <[EMAIL PROTECTED]> wrote: > > > I've been using CakePHP for a few projects and really think it's a > > great frameworks except one thing. I can't get my head around why all > > results have the model name in the associative array. I don't see any > > benefit of doing this. If you're trying to get a Post object and you > > do: $post = $this->Post->find() > > It's redundant only if you have no model associations unless you want > to risk for example, Post.comment being impossible to access. > > For > info.http://groups.google.com/group/cake-php/browse_thread/thread/e86a35ad... --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---