Chris:
You're the man! Thanks for the tip, that worked quite nicely.

--Mike

On May 27, 1:31 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Tue, May 27, 2008 at 1:51 PM, Mike <[EMAIL PROTECTED]> wrote:
>
> > Ok, I think I solved it. The proper value was being passed into the
> > function after all. The problem was in how I was structuring my find
> > in the controller function. I had:
>
> > $conditions = array();
> > $conditions['Transaction']['clientID'] = "= {$theclientid}";
> > $results = $this->Transaction->findAll($conditions);
>
> > Which does not work (any ideas why???). However, this does work:
>
> Conditions are usually done as key => value pairs.
>
> $conditions = array('clientID' => $theclientid);
> $results = $this->Transaction->find('all', compact('conditions'));
>
> Hope that helps.
>
> --
> Chris Hartjes
> Internet Loudmouth
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard:http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to