Re: Getting data from external applications / Constructing objects

2007-05-27 Thread Dazweeja
r: > > $this->ModelName->id = null; > $this->ModelName->save(array('fieldName' => $fieldValue)); > > for 1.2.x in ModelController: > > $this->ModelName->create(array('fieldName' => $fieldValue)); > $this->ModelName->save(); &g

Getting data from external applications / Constructing objects

2007-05-22 Thread Dazweeja
I'm fairly new to Cake so I think I might be missing something but so far I've found Cake very limited when interacting with data from sources other than forms. Once I understood that a model, eg. User, wasn't actually a User object but a representation of a db table, I began to look for the funct

Re: cakephp written in php 4 or php 5

2007-05-22 Thread Dazweeja
Have a look at the book "PHP 5 Objects, Patterns, and Practice" (search on Amazon for details). A very popular book for getting your head around OOP and Design Patterns in PHP. Darren. On May 22, 7:49 pm, rtanz <[EMAIL PROTECTED]> wrote: > ok thanks alot guys > > On May 22, 4:30 am, "Nathan Garz

Re: Question about findAll array

2007-05-15 Thread Dazweeja
Nice work, grigri. I'm fairly new to Cake and I thought that this would be such a common thing to do that it would form part of the core functionality. After all, if you are going to pass an array to any non- Cake-specific function - that is, to any external application or a non- Cake-specific fun

Question about findAll array

2007-05-14 Thread Dazweeja
I'm sure this is a newbie question but I've been unable find the answer. If I run findAll on a simple table with no joins, I get an array with an unnecessary middle level with the model name, eg. Array ( [0] => Array ( [User] => Array ( [id] => 1 [username] => user1 [emailaddress] => [EMAIL PROTE