Thanks Renan,

All three of those suggestions work. This also works:

$this->set('user', $this->User->find("id='$id'"));

I didn't realize I had to use SQL syntax. So, I guess it was pilot
error.

Thanks again.
Roger

On Jan 23, 11:00 am, "Renan Gonçalves" <[EMAIL PROTECTED]> wrote:
>  Try it:
> $model->findById($id);
> or
> $model->find('first', array('conditions' => array('id' => $id)));
> or
> $model->find(array('conditions' => array('id' => $id)));
>
> []'s
>
> On Jan 23, 2008 2:39 PM, Samuel DeVore <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > For future reference, pasting a lot of code in a list serve message is
> > kind of ugly, if you would like to make me happier (really just being
> > selfish here) use a pasting service that preserves formatting and also
> > lets you add comments like
>
> >http://bin.cakephp.org/
>
> > or if you don't like cake
>
> >http://pastie.textmate.org/ (which you can use from TextMate directly
> > if you use that little slice of goodness)
>
> > or one of the many other ones.  Really makes you look better to me.
>
> > Sam D
>
> --
> Renan Gonçalves - Web Developer
> Cell Phone: +55 (11) 8633-6018
> MSN: [EMAIL PROTECTED]
> Web Site: renangoncalves.com
> São Paulo - SP/Brazil
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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